mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
settings test
This commit is contained in:
parent
a4960097f0
commit
32120d8af4
10 changed files with 125 additions and 27 deletions
|
|
@ -164,6 +164,12 @@ void util::trim(std::string &s) {
|
|||
ltrim(s);
|
||||
}
|
||||
|
||||
std::string util::to_string(double x) {
|
||||
std::stringstream ss;
|
||||
ss << x;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::wstring util::to_wstring(double x, int precision) {
|
||||
std::wstringstream ss;
|
||||
ss << std::fixed << std::setprecision(precision) << x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue