Oops, doesn’t work here. I have this script:
        on MouseUp

                set the numberformat to  “0"

                put 4.21911e+11

        End mouseUp

puts 4.21911e+11 into msg box

What am I missing?

Roger


> On Nov 23, 2020, at 6:57 AM, Craig newman via use-livecode 
> <[email protected]> wrote:
> 
> Klaus.
> 
> Old fashioned way:
> 
> Set the numberFormat to "0"
> Answer "4.21911E+11" + 0
> 
> Craig
> 
> -----Original Message-----
> From: use-livecode [mailto:[email protected]] On Behalf
> Of Klaus major-k via use-livecode
> Sent: Sunday, November 22, 2020 3:48 PM
> To: How to use LiveCode <[email protected]>
> Cc: Klaus major-k <[email protected]>
> Subject: Re: Getting a real number from scientific notation
> 
> Hi Paul,
> 
>> Am 22.11.2020 um 21:44 schrieb Paul Dupuis via use-livecode
> <[email protected]>:
>> 
>> So, if you want to concert form scientific notation to a real number, you
> can use the "format" function (see dictionary). Example:
>> putformat("%1.0f",4.21911E+11) -- outputs 421911000000 Is that shat yo 
>> are looking for?
> 
> YES, thanks a BUNCH, that is exactly what I need!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> [email protected]
> 
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to