Hi, My todays problem: I extraxt some data out of a file, stored them etc., put them into an equation and print it to an outputfile in which the results are sorted by some of their values. The equation was first a linear one (and it worked perfectly), but now I would like to work with exponents (basis 2, exponent the input values) and the trouble begins. As the resulting numbers are to big (I get "inf" for some values) and only the order of the results are important, I decided to devide the intermediate results before they are use as an exponent. But: the order of the end result differes when I use different dividers (and my mathematical knowledge say this should not be).
schematic: $result = 2**($intermediate_result/$divider) Examples: when divide by 100 the end result is: 1.801617e+38 d 9.664580e+13 c 3.917908e+11 b 1.049598e+09 a 2.425199e+03 h 7.737267e+01 e 1.392777e-01 g 2.611436e-02 f 1.895388e-02 k 7.286340e-03 i when divide by 1000 the end result is: 1.762251e+00 d 1.508384e-02 k 6.546036e-03 h 5.830851e-03 c 4.578212e-03 i 3.056005e-03 b 3.050962e-03 a 2.835782e-03 e 2.076583e-03 f 9.915727e-04 g So what's wrong here? Are the numbers perhaps to big for the sort function? Which is the right order? Any Solutions? Konrad -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]