Re: [fpc-pascal] convert floating point to bcd and vice versa

2012-11-01 Thread ik
On Thu, Nov 1, 2012 at 3:17 PM, Ewald wrote: > On 11/01/2012 12:22 PM, ik wrote: >> Hello, >> >> I need to convert floating point (Single and Double) to an array of >> bytes > PByte(@YourVariable)[0] > through > PByte(@YourVariable)[SizeOf(YourVariable)-1] ? > > Or, if you have an array of Siz

Re: [fpc-pascal] convert floating point to bcd and vice versa

2012-11-01 Thread Ewald
On 11/01/2012 12:22 PM, ik wrote: > Hello, > > I need to convert floating point (Single and Double) to an array of > bytes PByte(@YourVariable)[0] through PByte(@YourVariable)[SizeOf(YourVariable)-1] ? Or, if you have an array of SizeOf(YourVariable) bytes, you could do something like this:

[fpc-pascal] convert floating point to bcd and vice versa

2012-11-01 Thread ik
Hello, I need to convert floating point (Single and Double) to an array of bytes (BCD) and vice versa. Are there any existed implementation for it ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mail