mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
ugly, refactor required
This commit is contained in:
parent
d47193cbb3
commit
e456b77143
8 changed files with 81 additions and 35 deletions
|
|
@ -7,7 +7,7 @@ std::string NumberSetting::toString() const {
|
|||
case setting_format::simple:
|
||||
return util::to_string(value);
|
||||
case setting_format::percent:
|
||||
return std::to_string(static_cast<integer_t>(value * 100)) + "%";
|
||||
return std::to_string(static_cast<integer_t>(round(value * 100))) + "%";
|
||||
default:
|
||||
return "invalid format";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue