Skip to content

Commit

Permalink
Use proper rounding function
Browse files Browse the repository at this point in the history
  • Loading branch information
blackboxembedded committed Oct 25, 2024
1 parent 2a5258e commit d261a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WunderLINQ/hardware/WLQ/MotorcycleData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ class MotorcycleData {
if UserDefaults.standard.integer(forKey: "distance_unit_preference") == 1 {
odometer = Double(Utils.kmToMiles(Double(odometer)))
}
value = "\(Utils.toZeroDecimalString(odometer))"
value = "\(Utils.toZeroDecimalString(odometer, wrapGrouping: true))"
} else {
value = NSLocalizedString("blank_field", comment: "")
}
Expand Down

0 comments on commit d261a3a

Please sign in to comment.