Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

how to prevent scientific notation for decimal numbers?

 [1/3] from: semseddinm:bircom at: 20-Jul-2009 17:40


Hi, how do I prevent Rebol Console to use scientific notation for decimal numbers?
>> 0.005
== 5E-3
>> 0.002 * 2
== 4E-3 Is there a system/option?

 [2/3] from: gregg:pointillistic at: 20-Jul-2009 9:37


Hi Şemseddin, ŞMB> Hi, how do I prevent Rebol Console to use scientific notation for ŞMB> decimal numbers? ... ŞMB> Is there a system/option? There isn't a system option, unfortunately. It's come up a number of times, and the best you can do is to have a function you use to format the numbers yourself. http://www.rebol.org/ml-display-thread.r?m=rmlZFPQ http://www.rebol.org/ml-display-thread.r?m=rmlNKXQ http://www.rebol.org/ml-display-thread.r?m=rmlCKVC -- Gregg

 [3/3] from: Tom:Conlin:gmai:l at: 20-Jul-2009 9:40


=DEemseddin Moldibi [ Bircom ] wrote:
> Hi, how do I prevent Rebol Console to use scientific notation for > decimal numbers?
<<quoted lines omitted: 3>>
> == 4E-3 > Is there a system/option?
It varies across, and is consistent within operating systems. on Solaris with rebol I get:
>> .005
== 0.005
>>
On Windows with I will see scientific notation for rebol, perl, python ...

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted