round2
Hi!
I am having a problem with round2 function and big numbers, in scientific notation.
I use this
RESULT1.Text=Round2(RESULT1.Text,Abs(14-Logarithm(Abs(RESULT1.Text),10)))
the decimal logarithm is to know how many digits the number has on the left of the decimal point. So the number is rounded to 14 - this number.
But if the number is in scientific notation and is bigger than, for example, 10^20, I got wrong results.
Now I am using Ifs to avoid such numbers, but is there a better way to do this?
Thank you very much!
P.S. This NumberFormat(, 1, 0) you are talking about seems to convert a number from Scientific notation to standart notation. This could be the solution for my problem.
But how do I convert back? I have read the manual and it talked about MinimumIntegers, MaximumFractions, no example in SN, I did not understand...