mirror of
https://github.com/bkaradzic/bx.git
synced 2026-06-08 11:13:49 +00:00
Cleanup.
This commit is contained in:
@@ -239,6 +239,9 @@ namespace bx
|
||||
///
|
||||
int32_t toString(char* _out, int32_t _max, uint64_t _value, uint32_t _base = 10);
|
||||
|
||||
///
|
||||
bool fromString(float* _out, const char* _str);
|
||||
|
||||
///
|
||||
bool fromString(double* _out, const char* _str);
|
||||
|
||||
|
||||
@@ -1042,6 +1042,14 @@ namespace bx
|
||||
return hd.d;
|
||||
}
|
||||
|
||||
bool fromString(float* _out, const char* _str)
|
||||
{
|
||||
double dbl;
|
||||
bool result = fromString(&dbl, _str);
|
||||
*_out = float(dbl);
|
||||
return result;
|
||||
}
|
||||
|
||||
bool fromString(double* _out, const char* _str)
|
||||
{
|
||||
PrepNumber pn;
|
||||
|
||||
Reference in New Issue
Block a user