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

[REBOL] Re: formatting of decimal value

From: al:bri:xtra at: 22-Dec-2000 16:19

> I've looked through the wole dictionary and don't see a quick method for
converting a decimal! to a string! with a specified format. I C I'd do something like:
> sprintf( destString, "%.2f", number); > > Is there something similar in REBOL or do I need a function?
There was mentioned quite some time back that Carl was thinking of a better method for formatting numbers. Presumably this will arrive with printing for Rebol some time in the future. The best alternative so far is Ladislav's functions. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/