Ticket #1464 (closed defect: fixed)
CPLAtof() gives wrong results
| Reported by: | warmerdam | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | highest | Milestone: | 1.4.1 |
| Component: | default | Version: | 1.4.0 |
| Severity: | blocker | Keywords: | |
| Cc: |
Description (last modified by hobu) (diff)
This program:
#include "cpl_conv.h"
int main()
{
printf( "%g\n", CPLAtof( "0.9996" ) );
}
Produces the result: 0.90996.
This becomes quite a pressing issue as we move to using this function
widely in the code.
Change History
Note: See
TracTickets for help on using
tickets.
