Getting a real number from scientific notation

Klaus major-k klaus at major-k.de
Sun Nov 22 15:25:33 EST 2020


Hi friends,

see subject.

I have some values in a CSV with this notation
According to the dictionary I tried:
on mouseUp pMouseButton
   put "4.21911E+11" into tSN
   set itemdel to "+"
   put char 1 to -2 of item 2 of tSN into t1
   put item 2 of tSN into t2
   put t1*10^t2 into tRes
   #x*10^y.
end mouseUp

But tRes is also in scientific notation ->  1e+11
When I set a breakpoint and doubleclick that value
the little popup palette shows a real number however!?

What am I missing and is this the correct way to do what I need?

Thanks a lot in advance!


Best

Klaus
--
Klaus Major
https://www.major-k.de
klaus at major-k.de




More information about the use-livecode mailing list