Skip to content

Remove style=percent from :number and :integer #988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions spec/functions/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ The following options and their values are required to be available on the funct
- `exceptZero`
- `negative`
- `never`
- `style`
- `decimal` (default)
- `percent` (see [Percent Style](#percent-style) below)
- `useGrouping`
- `auto` (default)
- `always`
Expand Down Expand Up @@ -97,21 +94,6 @@ with _options_ on the _expression_ taking priority over any option values of the
> would be formatted with the resolved options
> `{ notation: 'scientific', minimumFractionDigits: '1' }`.

##### Percent Style

When implementing `style=percent`, the numeric value of the _operand_
MUST be multiplied by 100 for the purposes of formatting.

> For example,
>
> ```
> The total was {0.5 :number style=percent}.
> ```
>
> should format in a manner similar to:
>
> > The total was 50%.

#### Resolved Value

The _resolved value_ of an _expression_ with a `:number` _function_
Expand Down Expand Up @@ -160,9 +142,6 @@ function `:integer`:
- `exceptZero`
- `negative`
- `never`
- `style`
- `decimal` (default)
- `percent` (see [Percent Style](#percent-style) below)
- `useGrouping`
- `auto` (default)
- `always`
Expand All @@ -186,21 +165,6 @@ Option values with the following names are however discarded if included in the
- `maximumFractionDigits`
- `minimumSignificantDigits`

##### Percent Style

When implementing `style=percent`, the numeric value of the _operand_
MUST be multiplied by 100 for the purposes of formatting.

> For example,
>
> ```
> The total was {0.5 :number style=percent}.
> ```
>
> should format in a manner similar to:
>
> > The total was 50%.

#### Resolved Value

The _resolved value_ of an _expression_ with an `:integer` _function_
Expand Down Expand Up @@ -817,7 +781,6 @@ representing its decimal value:
- `minimumSignificantDigits`
- `maximumSignificantDigits`
- `notation`
- `style`

```abnf
integer = "0" / ["-"] ("1"-"9") *DIGIT
Expand Down