----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 30, 2005 8:58 PM Subject: [REBOL] Re: REBOL Newbie: Floating Point Rounding / Formatting Function ?
Sunanda, > > Anthony: > > I've quickly searched through the website [rebol.com] > > documentation and [using keywords like 'printf', 'format', > > 'round' etc], and it would appear that there is no such thing. > > It's almost inexplicable that there is such a hole in the language > or its capabilties, isn't it? > Actually, no, it wouldn't surprise me :) ! I recall that early versions of Java [pre-1.2, I believe], as well as early versions of JavaScript, also, didn't have such functionality. > > In an ancient thread an RT employee (at the time) said: > > > I believe Carl already has in mind how he wants to solve > > these types of formatting issues within REBOL. I don't > > know when it'll happen though. > > > http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlYTNB > > That thread also references a script by Eric Long, format.r, that: > > "FORMAT aims to be a Reboloid replacement for sprintf." > > That would seem to be the answer -- or at least a good starting > point...But it is no longer in the Library, and I don't know why. > > (I did ask why via the REBOL3 Q&A forum and the rebol.com > Feedback form. That was back in October. No answer as yet). > > I do have a copy of Eric Long's format.r but I do not know if it > is possible to distribute it. > > So not a lot of help for you there: just my sympathy. > > There are some other partial solutions here: > > http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlCKVC > I'll take a look at it, thanks. Since there isn't a 'format' function it might make for an interesting learning project. Cheers, Anthony Borla -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
