mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Fix item weight displaying as 1e+3 for Stendarr's Hammer
This commit is contained in:
parent
17f8b49db6
commit
1173957e56
@ -512,7 +512,11 @@ namespace MWGui
|
|||||||
std::string ToolTips::toString(const float value)
|
std::string ToolTips::toString(const float value)
|
||||||
{
|
{
|
||||||
std::ostringstream stream;
|
std::ostringstream stream;
|
||||||
stream << std::setprecision(3) << value;
|
|
||||||
|
if (value != int(value))
|
||||||
|
stream << std::setprecision(3);
|
||||||
|
|
||||||
|
stream << value;
|
||||||
return stream.str();
|
return stream.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user