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

2004-02-02 Thread Ladislav Mecir
Hi Ashley, >>convert: func [ >>x >>/local y >>] [ >>y: make struct! compose/deep [x [(type?/word x)]] reduce [x] >>third y >>] >> >> > >OK, this one has me stumpted. For us mere mortals, could you explain: > > >> help y > Y is a struct of value: make struct! [x [de

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

2004-02-02 Thread Gabriele Santilli
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 #{9A99C93F} AT> )? >> s: make stru

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

2004-02-02 Thread Ashley TrĂ¼ter
Hi Ladislav, > convert: func [ > x > /local y > ] [ > y: make struct! compose/deep [x [(type?/word x)]] reduce [x] > third y > ] OK, this one has me stumpted. For us mere mortals, could you explain: >> help y Y is a struct of value: make struct! [x [decimal!]] [0