I get the data in the form {Exponenta, Mantissa} - {123,9135000000}, trying to get the number:

12> D = 9135000000. 9135000000 13> D*math:pow(10, -5). 91350.00000000001 

Where is the mistake?

  • There is no error in the above code. What do you want to get as a result? - iksuy
  • Obviously this is a rounding error. If you still do not know that numbers in a computer are not at all what some people want, then look for a literature on the topic of representing numbers in a computer. - Sergey
  • Write the answer so that the question is closed. - Dennis Y. Parygin
  • Did rounding and it all worked - compressor

0