FloatToStrF(Nan): wrong result
Original Reporter info from Mantis: Valdas
-
Reporter name: Valdas Jankūnas
Original Reporter info from Mantis: Valdas
- Reporter name: Valdas Jankūnas
Description:
If I use FloatToStrF with NaN (not a number) then I got "N.n" instead of "NAN";
Steps to reproduce:
Add in Uses clause: sysutils, math
Write code: writeln(FloatToStrF(nan, ffExponent, 15, 1));
Compile and execute: in console you got "N.n"
Mantis conversion info:
- Mantis ID: 27029
- OS: Kubuntu 14.10
- Platform: Linux i64
- Version: 2.6.2
- Fixed in version: 3.0.0
- Fixed in revision: 29126 (#9a31cba3)
- Monitored by: » Valdas (Valdas Jankūnas)