[fpc-pascal] convert floating point to bcd and vice versa
idokan at gmail.com
Thu Nov 1 16:53:56 CET 2012
On Thu, Nov 1, 2012 at 3:17 PM, Ewald
<bloody.middlefinger at yellowcouch.org> wrote:
> On 11/01/2012 12:22 PM, ik wrote:
>> I need to convert floating point (Single and Double) to an array of
> PByte(@YourVariable)[SizeOf(YourVariable)-1] ?
> Or, if you have an array of SizeOf(YourVariable) bytes, you could do
> something like this:
> Move(YourVariable, YourArray, SizeOf(YourVariable))
> (note that you might want to take endianess into account, but I don't
> know if this applies to floats as it does to integers)
> Events don't necessarily happen in chronological order; yet somehow they do persist to happen. Sometime.
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal