This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Use "NaN" for nan display values in Quantity.
tags/v2.0.0
Andrew Belt
4 years ago
parent
2c750cb7c0
commit
58a9346309
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Quantity.cpp
+ 1
- 1
src/Quantity.cpp
View File
@@ -26,7 +26,7 @@ std::string Quantity::getDisplayValueString() {
else if (v == -INFINITY)
return "-∞";
else if (std::isnan(v))
return "
?
";
return "
NaN
";
return string::f("%.*g", getDisplayPrecision(), math::normalizeZero(v));
}
Write
Preview
Loading…
Cancel
Save