• Craig Small's avatar
    A locale-independent strtod · 32e1b2e2
    Craig Small authored
    There is a need in some utilities to have a way of accepting both
    types of decimal points "." and ",". The only way seems to be to
    rebuild strtod().
    
    This new function will accept "123.456" and "123,456" as 123.456
    and considers them the same number. It means we lose thousands
    separator, but this is rarely used.
    
    test scripts are added to check the function returns the proper
    values. There was simpler predecessor that got stuck on negative
    0 or -0.123 which these tests flushed out.
    
    References:
    32e1b2e2
Name
Last commit
Last update
..
Makefile.am Loading commit data...
c.h Loading commit data...
fileutils.h Loading commit data...
nls.h Loading commit data...
nsutils.h Loading commit data...
rpmatch.h Loading commit data...
strutils.h Loading commit data...
xalloc.h Loading commit data...