Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/RTL/Delphi/Format + Float    [ Add a report in this area ]  
Report #:  87848   Status: Open
incoherence between FloatToStr and StrToFloat
Project:  Delphi Build #:  14.0.3593.25826
Version:    14.0 Submitted By:   Didier LOZAC'H
Report Type:  Basic functionality failure Date Reported:  9/7/2010 7:32:45 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   280353
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 10
The "FloatToStr" function converts a NAN (not a number) value to the text "nan";

but the function "StrToFloat" is not able to convert back the "nan" text to a NAN (not a number)  value
Steps to Reproduce:
Open, Compile and Run the attached program :
           This program creates a NAN value
                                writes this value in a text file
                                reads the text file created previously => an exception occurs.
FloatToStr -


Server Response from: ETNACODE01