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

[REBOL] Re: "scientific notation"

From: carl:cybercraft at: 11-Jan-2003 15:37

On 11-Jan-03, Vos, Doug wrote:
> Has everyone who complained tried the function I provided that > solves the problem?
Just tried it on Windows, Amiga and Linux, and while it works as stated on Windows, on Amiga and Linux it gives this error...
>> exp2dec 1E-2
** Script Error: copy expected value argument of type: series port bitset ** Where: exp2dec ** Near: dec-numbers: copy/part (find dec-numbers "E-") at dec-numbers
> It seems to be a good work around for me, so I don't know what > people are still complaining about? Please help me understand...
Does the above help? (: I'm assuming you only tried it on Windows, which shows the problem of trying to write OS work arounds when you don't have all the OSs at your fingertips to test your program on. With REBOL, cross-platform issues need to be solved within REBOL itself, which means it's RT's job. This doesn't mean we shouldn't provide work arounds 'till RT get around to fixing them of course, and I'm sure you can think of a fix for your function, but a real fix needs to be somewhere deep inside REBOL so we don't get these kinds of results... On Windows...
>> 1E-2
== 1E-2 On Amiga and Linux (and many other OSs I assume)...
>> 1E-2
== 0.01 -- Carl Read