Update unit switch points
This commit is contained in:
@@ -43,7 +43,7 @@ namespace OpenVulkano
|
||||
{
|
||||
if (metric)
|
||||
{
|
||||
if (distance > units::length::meter_t(0) && distance < units::length::meter_t(0.1))
|
||||
if (distance > units::length::meter_t(0) && distance < units::length::meter_t(1))
|
||||
{
|
||||
return FormatValue(units::length::millimeter_t(distance).value(), precision, trimTrailingZeros, " mm");
|
||||
}
|
||||
@@ -58,7 +58,7 @@ namespace OpenVulkano
|
||||
auto distanceFeet = units::length::foot_t(distance).value();
|
||||
auto distanceInches = units::length::inch_t(distance).value();
|
||||
|
||||
if (distanceFeet > 0 && distanceFeet < 0.1)
|
||||
if (distanceFeet > 0 && distanceFeet < 1)
|
||||
{
|
||||
return FormatValue(distanceInches, precision, trimTrailingZeros, " in");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user