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

[REBOL] Re: How to obtain a 64-bit IEEE754 representation of a decimal number

From: g:santilli:tiscalinet:it at: 2-Feb-2004 15:05

Hi Ashley, On Monday, February 2, 2004, 2:32:09 PM, you wrote: AT> how and why this works, in particular where "third y" comes from? I think it is documented in the struct! docs... AT> Also, AT> how does one reverse the conversion (i.e. get 0.2 from #{9A9999999999C93F} AT> )?
>> s: make struct! [val [decimal!]] [0] >> change third s #{9A9999999999C93F}
== #{}
>> s/val
== 0.2 Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: