You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ By default, values will show up to one fractional decimal point of the value, ro
23
23
24
24
### Options
25
25
26
-
*`blankIfZero` (default: `false`) - if true, a value of zerowill return “”
26
+
*`ifZero` (default: `(String?)nil`) - if nil and value is zero, a zero value will be shown. If !nil and value is zero, the specified string value will be shown
27
27
*`roundSmallToWhole` (default: `false`) - if true, fractional parts excluded from values within `-100...100`
28
28
29
29
### Suffixes
@@ -52,7 +52,7 @@ By default, values within `-100...100` will have no fractional part, and are rou
52
52
53
53
### Options
54
54
55
-
*`blankIfZero` (default: `false`) - if true, a value of zerowill return “”
55
+
*`ifZero` (default: `(String?)nil`) - if nil and value is zero, a zero value will be shown. If !nil and value is zero, the specified string value will be shown
56
56
*`roundSmallToWhole` (default: `true`) - if true, fractional parts excluded from values within `-100...100`
57
57
58
58
Note that `roundSmallToWhole` is true by default, because `$1.1` looks awkward when we’re accustomed to fractions in pennies.
@@ -81,7 +81,7 @@ By default, values will show up to one fractional decimal point of the value, ro
81
81
82
82
### Options
83
83
84
-
*`blankIfZero` (default: `false`) - if true, a value of zerowill return “”
84
+
*`ifZero` (default: `(String?)nil`) - if nil and value is zero, a zero value will be shown. If !nil and value is zero, the specified string value will be shown
85
85
*`style` (default: `.short`) - the style of suffix used
86
86
*`roundSmallToWhole` (default: `false`) - if true, fractional parts excluded from values within `-100...100`
0 commit comments