Commit 3ac7de7a authored by Max Kellermann's avatar Max Kellermann

util/NumberParser: add ParseFloat()

parent ade66e7e
......@@ -75,4 +75,10 @@ ParseDouble(const char *p, char **endptr=nullptr)
return (double)strtod(p, endptr);
}
static inline float
ParseFloat(const char *p, char **endptr=nullptr)
{
return (float)ParseDouble(p, endptr);
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment