mathlib: minor fix
This commit is contained in:
parent
3de825c290
commit
51365c4b9d
|
@ -48,10 +48,6 @@ double MathLib::toDoubleNumber(const std::string &str)
|
|||
{
|
||||
return std::strtoul(str.c_str(), '\0', 16);
|
||||
}
|
||||
if (strncmp(str.c_str(), "0", 1) == 0)
|
||||
{
|
||||
return std::strtoul(str.c_str(), '\0', 8);
|
||||
}
|
||||
return std::atof(str.c_str());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue