At 03:43 PM 6/1/2001 -0500, Albert Berry wrote:
>Interesting. I got exactly the same results (6.1A) but
>when I changed the data type of vDiff to CURRENCY, the
>rounding worked correctly. Perhaps the internal value is
>being stored as 14.49999999999999999999 or however many.
Albert,
The reason?
Technically, the CURRENCY data type is stored as two long
integer values, reserving four bytes of internal storage.
For more details on R:BASE Data Types and their mapping,
check out the latest and greatest (constantly updated):
http://www.RSyntax.com
Very Best Regards,
Razzak.