rtl: note about currency

This commit is contained in:
mattias 2018-04-22 11:39:32 +00:00
parent a95188db36
commit 3f0b7322ad

View File

@ -248,6 +248,10 @@ function IntToHex(Value: NativeInt; Digits: integer): string;
*****************************************************************************}
const
// Note: Currency is internally a double, multiplied by 10000 and truncated.
// The below values are the safe limits, within every step exists.
// Since currency is a double it can take much larger values, but the result
// may differ from Delphi/FPC
MaxCurrency: Currency = 450359962737.0495; // fpc: 922337203685477.5807;
MinCurrency: Currency = -450359962737.0496; // fpc: -922337203685477.5808;