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

[REBOL] Re: Time, seconds and scientific notation

From: SunandaDH:aol at: 23-Feb-2004 16:18

> How can I have the second example printed without scientific notation (as > seconds)?
I suspect you are running under Windows. Other platforms don't go scientific for just 2 decimal places. Windows does, even for non-time values: print .01
>> print .01
1E-2 I don't think there is an easy solution, other than to write a decimal formatter yourself. Here's a cheap Windows trick -- assuming you only want 2 decimal places:
>> print replace mold to money! .01 "$" ""
0.01 Sunanda.