Core: Atof (comma safe atof)

git-svn-id: svn://ultimatepp.org/upp/trunk@10764 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-01-26 08:24:21 +00:00
parent 35a63524b2
commit 60add2c64d
6 changed files with 14 additions and 4 deletions

View file

@ -182,6 +182,11 @@ double ScanDouble(const wchar *p, const wchar **endptr, bool accept_comma)
return ScanDoubleT(p, endptr, accept_comma);
}
double Atof(const char *s)
{
return Nvl(ScanDouble(s));
}
Value StrIntValue(const char *s)
{
if(s && *s) {