On Sat, Aug 7, 2010 at 10:44 PM, Zaher Dirkey <parm...@gmail.com> wrote: > A Currency is a Int64 not float, if you assign currency to float variable > (double/extended) and return back to currency variable, you will not get the > same value.
Interresting enough, the exact same value is returned. From my research on this subject a floating point is something like: Sign bit || exponent bits || decimal places Num = sign * (2^(exponent - offset) + decimal places) And the server only sends numbers like: 0,25; 0,5; 1; 2; 4; etc All those numbers can be fully represented using the exponent, so the double conversion maintains them exactly the same. -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal