blob: c93d1434858adb256458e031659e2b916930c27d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#if UNITY_EDITOR
/// Converts float/double to and from strings.
/// Binary exact float<-> string conversion functions.
/// Supports the full range of all float values, including nan, inf and denormalized values.
bool FloatToStringAccurate (float f, char* buffer, size_t maximumSize);
bool DoubleToStringAccurate (double f, char* buffer, size_t maximumSize);
bool FloatToStringAccurate (float f, UnityStr& output);
bool DoubleToStringAccurate (double f, UnityStr& output);
float StringToFloatAccurate (const char* buffer);
double StringToDoubleAccurate (const char* buffer);
#endif
|