I am trying to find the scientific notation with double and i could not find any function or way to do this.
My variable is double and I need to get the scientific notation from it, for example:
3.44828e+026
I need to somehow get the number 026 from my double variable.
By the way, the number is actually 28 long and not 26, is there a way to fix that too? (not adding 2 to the result)
Thanks in advance!
1e+28 - 1is1e28on most machines. (Machine floating point values are not real numbers, and don't obey the rules of real number arithmetic.) - James Kanze1e+28 == 9.99e+27, anyway that doesn't change the result,1e+28 / 29 = 3.xx e+26. - zakinster