mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 05:17:56 +00:00
[iOS] Remove decimals in current speed
Signed-off-by: matheusgomesms <matheusgomesms@noreply.codeberg.org>
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
- (NSString*) valueAsString {
|
||||
auto const outString = measurement_utils::ToStringPrecision(self.value, self.value >= 10.0 ? 0 : 1);
|
||||
auto const outString = measurement_utils::ToStringPrecision(self.value, 0);
|
||||
return [NSString stringWithUTF8String:outString.c_str()];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user