Skip to content

Commit b58b1d2

Browse files
authored
Remove style=percent from :number and :integer (#988)
Only remove style=percent
1 parent 07dfa8c commit b58b1d2

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

spec/functions/number.md

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ The following options and their values are required to be available on the funct
4343
- `exceptZero`
4444
- `negative`
4545
- `never`
46-
- `style`
47-
- `decimal` (default)
48-
- `percent` (see [Percent Style](#percent-style) below)
4946
- `useGrouping`
5047
- `auto` (default)
5148
- `always`
@@ -97,21 +94,6 @@ with _options_ on the _expression_ taking priority over any option values of the
9794
> would be formatted with the resolved options
9895
> `{ notation: 'scientific', minimumFractionDigits: '1' }`.
9996
100-
##### Percent Style
101-
102-
When implementing `style=percent`, the numeric value of the _operand_
103-
MUST be multiplied by 100 for the purposes of formatting.
104-
105-
> For example,
106-
>
107-
> ```
108-
> The total was {0.5 :number style=percent}.
109-
> ```
110-
>
111-
> should format in a manner similar to:
112-
>
113-
> > The total was 50%.
114-
11597
#### Resolved Value
11698
11799
The _resolved value_ of an _expression_ with a `:number` _function_
@@ -160,9 +142,6 @@ function `:integer`:
160142
- `exceptZero`
161143
- `negative`
162144
- `never`
163-
- `style`
164-
- `decimal` (default)
165-
- `percent` (see [Percent Style](#percent-style) below)
166145
- `useGrouping`
167146
- `auto` (default)
168147
- `always`
@@ -186,21 +165,6 @@ Option values with the following names are however discarded if included in the
186165
- `maximumFractionDigits`
187166
- `minimumSignificantDigits`
188167
189-
##### Percent Style
190-
191-
When implementing `style=percent`, the numeric value of the _operand_
192-
MUST be multiplied by 100 for the purposes of formatting.
193-
194-
> For example,
195-
>
196-
> ```
197-
> The total was {0.5 :number style=percent}.
198-
> ```
199-
>
200-
> should format in a manner similar to:
201-
>
202-
> > The total was 50%.
203-
204168
#### Resolved Value
205169
206170
The _resolved value_ of an _expression_ with an `:integer` _function_
@@ -817,7 +781,6 @@ representing its decimal value:
817781
- `minimumSignificantDigits`
818782
- `maximumSignificantDigits`
819783
- `notation`
820-
- `style`
821784
822785
```abnf
823786
integer = "0" / ["-"] ("1"-"9") *DIGIT

0 commit comments

Comments
 (0)