FloatToDecimal() is different from Delphi for INF and NAN arguments
Original Reporter info from Mantis: Gorelkin
-
Reporter name: Sergei Gorelkin
Original Reporter info from Mantis: Gorelkin
- Reporter name: Sergei Gorelkin
Description:
Delphi implementation of FloatToDecimal function handles +Inf and -Inf arguments by setting Exponent field of result to 32767 and Digits[0] to zero. For NaNs, it sets Exponent to -32768 and Digits[0] to zero.
FPC implementation fails these cases. See the attached sample.
Mantis conversion info:
- Mantis ID: 14143
- Version: 2.3.1
- Fixed in version: 2.4.0
- Fixed in revision: 13394 (#55578e82)