We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65db57 commit 2d2ec63Copy full SHA for 2d2ec63
Loop/Views/GlucoseHUDView.swift
@@ -33,6 +33,9 @@ final class GlucoseHUDView: HUDView {
33
let numberFormatter = NSNumberFormatter()
34
numberFormatter.numberStyle = .DecimalStyle
35
numberFormatter.minimumFractionDigits = unit.preferredMinimumFractionDigits
36
+ numberFormatter.usesSignificantDigits = true
37
+ numberFormatter.minimumSignificantDigits = 2
38
+ numberFormatter.maximumSignificantDigits = 3
39
glucoseLabel.text = numberFormatter.stringFromNumber(glucoseValue.quantity.doubleValueForUnit(unit))
40
41
var unitStrings = [unit.glucoseUnitDisplayString]
0 commit comments