ui: Use easier to read float representation in various places
This commit is contained in:
parent
5cb326f95b
commit
0e2bfa25ab
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 018ae39749994c9f7a615fc3a7bd2feb0a4337ae
|
Subproject commit 98ff2d9b4df79a7496c14ca0a19fc37bd0b9518d
|
@ -356,7 +356,7 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::TextFormatted("{0:.3Lf}", mathHistory[(mathHistory.size() - 1) - i]);
|
ImGui::TextFormatted("{0:.3Lf}", mathHistory[(mathHistory.size() - 1) - i]);
|
||||||
break;
|
break;
|
||||||
case MathDisplayType::Scientific:
|
case MathDisplayType::Scientific:
|
||||||
ImGui::TextFormatted("{0:.6Le}", mathHistory[(mathHistory.size() - 1) - i]);
|
ImGui::TextFormatted("{0:.6Lg}", mathHistory[(mathHistory.size() - 1) - i]);
|
||||||
break;
|
break;
|
||||||
case MathDisplayType::Engineering:
|
case MathDisplayType::Engineering:
|
||||||
ImGui::TextFormatted("{0}", hex::toEngineeringString(mathHistory[(mathHistory.size() - 1) - i]).c_str());
|
ImGui::TextFormatted("{0}", hex::toEngineeringString(mathHistory[(mathHistory.size() - 1) - i]).c_str());
|
||||||
@ -396,7 +396,7 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::TextFormatted("{0:.3Lf}", value);
|
ImGui::TextFormatted("{0:.3Lf}", value);
|
||||||
break;
|
break;
|
||||||
case MathDisplayType::Scientific:
|
case MathDisplayType::Scientific:
|
||||||
ImGui::TextFormatted("{0:.6Le}", value);
|
ImGui::TextFormatted("{0:.6Lg}", value);
|
||||||
break;
|
break;
|
||||||
case MathDisplayType::Engineering:
|
case MathDisplayType::Engineering:
|
||||||
ImGui::TextFormatted("{}", hex::toEngineeringString(value));
|
ImGui::TextFormatted("{}", hex::toEngineeringString(value));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user