2021-05-13 21:05:05 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2022-06-22 23:37:46 -04:00
|
|
|
|
2022-05-19 21:30:14 -04:00
|
|
|
#include "common/common_types.h"
|
2021-05-13 21:05:05 -04:00
|
|
|
|
2022-06-13 18:39:22 -04:00
|
|
|
float fixed_point_to_float(s64 value, s64 scale);
|
2022-05-19 21:30:14 -04:00
|
|
|
std::string fixed_point_to_string(s64 value, s64 scale, bool append_trailing_decimal = false);
|
2021-11-14 12:45:47 -05:00
|
|
|
std::string float_to_string(float value, bool append_trailing_decimal = true);
|
2022-01-15 20:01:38 -05:00
|
|
|
std::string meters_to_string(float value, bool append_trailing_decimal = false);
|
2022-10-09 12:53:44 -04:00
|
|
|
std::string degrees_to_string(float value, bool append_trailing_decimal = false);
|
2022-06-09 21:18:08 -04:00
|
|
|
std::string seconds_to_string(s64 value, bool append_trailing_decimal = false);
|
2022-01-15 20:01:38 -05:00
|
|
|
int float_to_cstr(float value, char* buffer, bool append_trailing_decimal = true);
|
2023-01-01 18:05:31 -05:00
|
|
|
bool proper_float(float value);
|