util/NumberParser: add ParseFloat()
This commit is contained in:
parent
ade66e7ece
commit
3ac7de7a22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user