Skip to content

Commit

Permalink
Well, make the first row bold
Browse files Browse the repository at this point in the history
Now that the first column in these tables is bold, make the first row (in the markdown) bold as well.
  • Loading branch information
BillWagner committed Feb 11, 2024
1 parent 023df4b commit bfe7c76
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 52 deletions.
86 changes: 43 additions & 43 deletions standard/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3605,15 +3605,15 @@ The predefined multiplication operators are listed below. The operators all comp

The product is computed according to the rules of IEC 60559 arithmetic. The following table lists the results of all possible combinations of nonzero finite values, zeros, infinities, and NaNs. In the table, `x` and `y` are positive finite values. `z` is the result of `x * y`, rounded to the nearest representable value. If the magnitude of the result is too large for the destination type, `z` is infinity. Because of rounding, `z` may be zero even though neither `x` nor `y` is zero.

| | `+y` | `-y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| :-------- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **`+x`** | `+z` | `-z` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| **`-x`** | `-z` | `+z` | `-0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`+0`** | `+0` | `-0` | `+0` | `-0` | `NaN` | `NaN` | `NaN` |
| **`-0`** | `-0` | `+0` | `-0` | `+0` | `NaN` | `NaN` | `NaN` |
| **`+∞`** | `+∞` | `-∞` | `NaN` | `NaN` | `+∞` | `-∞` | `NaN` |
| **`-∞`** | `-∞` | `+∞` | `NaN` | `NaN` | `-∞` | `+∞` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| | **`+y`** | **`-y`** | **`+0`** | **`-0`** | **`+∞`** | **`-∞`** | **`NaN`** |
| :-------- | :------: | :------: | :------: | :------: | :------: | :------: | :-------: |
| **`+x`** | `+z` | `-z` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| **`-x`** | `-z` | `+z` | `-0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`+0`** | `+0` | `-0` | `+0` | `-0` | `NaN` | `NaN` | `NaN` |
| **`-0`** | `-0` | `+0` | `-0` | `+0` | `NaN` | `NaN` | `NaN` |
| **`+∞`** | `+∞` | `-∞` | `NaN` | `NaN` | `+∞` | `-∞` | `NaN` |
| **`-∞`** | `-∞` | `+∞` | `NaN` | `NaN` | `-∞` | `+∞` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |

(Except were otherwise noted, in the floating-point tables in [§12.10.2](expressions.md#12102-multiplication-operator)[§12.10.6](expressions.md#12106-subtraction-operator) the use of “`+`” means the value is positive; the use of “`-`” means the value is negative; and the lack of a sign means the value may be positive or negative or has no sign (NaN).)
- Decimal multiplication:
Expand Down Expand Up @@ -3656,15 +3656,15 @@ The predefined division operators are listed below. The operators all compute th

The quotient is computed according to the rules of IEC 60559 arithmetic. The following table lists the results of all possible combinations of nonzero finite values, zeros, infinities, and NaNs. In the table, `x` and `y` are positive finite values. `z` is the result of `x / y`, rounded to the nearest representable value.

| | `+y` | `-y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| :-------- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **`+x`** | `+z` | `-z` | `+∞` | `-∞` | `+0` | `-0` | `NaN` |
| **`-x`** | `-z` | `+z` | `-∞` | `+∞` | `-0` | `+0` | `NaN` |
| **`+0`** | `+0` | `-0` | `NaN` | `NaN` | `+0` | `-0` | `NaN` |
| **`-0`** | `-0` | `+0` | `NaN` | `NaN` | `-0` | `+0` | `NaN` |
| **`+∞`** | `+∞` | `-∞` | `+∞` | `-∞` | `NaN` | `NaN` | `NaN` |
| **`-∞`** | `-∞` | `+∞` | `-∞` | `+∞` | `NaN` | `NaN` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| | **`+y`** | **`-y`** | **`+0`** | **`-0`** | **`+∞`** | **`-∞`** | **`NaN`** |
| :-------- | :------: | :------: | :------: | :------: | :------: | :------: | :-------: |
| **`+x`** | `+z` | `-z` | `+∞` | `-∞` | `+0` | `-0` | `NaN` |
| **`-x`** | `-z` | `+z` | `-∞` | `+∞` | `-0` | `+0` | `NaN` |
| **`+0`** | `+0` | `-0` | `NaN` | `NaN` | `+0` | `-0` | `NaN` |
| **`-0`** | `-0` | `+0` | `NaN` | `NaN` | `-0` | `+0` | `NaN` |
| **`+∞`** | `+∞` | `-∞` | `+∞` | `-∞` | `NaN` | `NaN` | `NaN` |
| **`-∞`** | `-∞` | `+∞` | `-∞` | `+∞` | `NaN` | `NaN` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |

- Decimal division:

Expand Down Expand Up @@ -3705,15 +3705,15 @@ The predefined remainder operators are listed below. The operators all compute t

The following table lists the results of all possible combinations of nonzero finite values, zeros, infinities, and NaNs. In the table, `x` and `y` are positive finite values. `z` is the result of `x % y` and is computed as `x – n * y`, where n is the largest possible integer that is less than or equal to `x / y`. This method of computing the remainder is analogous to that used for integer operands, but differs from the IEC 60559 definition (in which `n` is the integer closest to `x / y`).

| | `+y` | `-y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| :-------- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **`+x`** | `+z` | `+z` | `NaN` | `NaN` | `+x` | `+x` | `NaN` |
| **`-x`** | `-z` | `-z` | `NaN` | `NaN` | `-x` | `-x` | `NaN` |
| **`+0`** | `+0` | `+0` | `NaN` | `NaN` | `+0` | `+0` | `NaN` |
| **`-0`** | `-0` | `-0` | `NaN` | `NaN` | `-0` | `-0` | `NaN` |
| **`+∞`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| **`-∞`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| | **`+y`** | **`-y`** | **`+0`** | **`-0`** | **`+∞`** | **`-∞`** | **`NaN`** |
| :-------- | :------: | :------: | :------: | :------: | :------: | :------: | :-------: |
| **`+x`** | `+z` | `+z` | `NaN` | `NaN` | `+x` | `+x` | `NaN` |
| **`-x`** | `-z` | `-z` | `NaN` | `NaN` | `-x` | `-x` | `NaN` |
| **`+0`** | `+0` | `+0` | `NaN` | `NaN` | `+0` | `+0` | `NaN` |
| **`-0`** | `-0` | `-0` | `NaN` | `NaN` | `-0` | `-0` | `NaN` |
| **`+∞`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| **`-∞`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |

- Decimal remainder:

Expand Down Expand Up @@ -3754,14 +3754,14 @@ The predefined addition operators are listed below. For numeric and enumeration

The sum is computed according to the rules of IEC 60559 arithmetic. The following table lists the results of all possible combinations of nonzero finite values, zeros, infinities, and NaNs. In the table, `x` and `y` are nonzero finite values, and `z` is the result of `x + y`. If `x` and `y` have the same magnitude but opposite signs, `z` is positive zero. If `x + y` is too large to represent in the destination type, `z` is an infinity with the same sign as `x + y`.

| | `y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| :-------- | :---: | :---: | :---: | :---: | :---: | :---: |
| **`x`** | `z` | `x` | `x` | `+∞` | `-∞` | `NaN` |
| **`+0`** | `y` | `+0` | `+0` | `+∞` | `–∞` | `NaN` |
| **`-0`** | `y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| **`+∞`** | `+∞` | `+∞` | `+∞` | `+∞` | `NaN` | `NaN` |
| **`-∞`** | `-∞` | `-∞` | `-∞` | `NaN` | `-∞` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| | **`y`** | **`+0`** | **`-0`** | **`+∞`** | **`-∞`** | **`NaN`** |
| :-------- | :-----: | :------: | :------: | :------: | :------: | :-------: |
| **`x`** | `z` | `x` | `x` | `+∞` | `-∞` | `NaN` |
| **`+0`** | `y` | `+0` | `+0` | `+∞` | `–∞` | `NaN` |
| **`-0`** | `y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| **`+∞`** | `+∞` | `+∞` | `+∞` | `+∞` | `NaN` | `NaN` |
| **`-∞`** | `-∞` | `-∞` | `-∞` | `NaN` | `-∞` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |

- Decimal addition:

Expand Down Expand Up @@ -3855,14 +3855,14 @@ The predefined subtraction operators are listed below. The operators all subtrac

The difference is computed according to the rules of IEC 60559 arithmetic. The following table lists the results of all possible combinations of nonzero finite values, zeros, infinities, and NaNs. In the table, `x` and `y` are nonzero finite values, and `z` is the result of `x – y`. If `x` and `y` are equal, `z` is positive zero. If `x – y` is too large to represent in the destination type, `z` is an infinity with the same sign as `x – y`.

| | `y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| :-------- | :---: | :---: | :---: | :---: | :---: | :---: |
| **`x`** | `z` | `x` | `x` | `-∞` | `+∞` | `NaN` |
| **`+0`** | `-y` | `+0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`-0`** | `-y` | `-0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`+∞`** | `+∞` | `+∞` | `+∞` | `NaN` | `+∞` | `NaN` |
| **`-∞`** | `-∞` | `-∞` | `-∞` | `-∞` | `NaN` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| | **`y`** | **`+0`** | **`-0`** | **`+∞`** | **`-∞`** | **`NaN`** |
| :-------- | :-----: | :------: | :------: | :------: | :------: | :-------: |
| **`x`** | `z` | `x` | `x` | `-∞` | `+∞` | `NaN` |
| **`+0`** | `-y` | `+0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`-0`** | `-y` | `-0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`+∞`** | `+∞` | `+∞` | `+∞` | `NaN` | `+∞` | `NaN` |
| **`-∞`** | `-∞` | `-∞` | `-∞` | `-∞` | `NaN` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |

(In the above table, the `-yentries denote the *negation* of `y`, not that the value is negative.)
- Decimal subtraction:
Expand Down
18 changes: 9 additions & 9 deletions tools/MarkdownConverter.Tests/table-with-emphasis.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

The product is computed according to the rules of IEC 60559 arithmetic. The following table lists the results of all possible combinations of nonzero finite values, zeros, infinities, and NaNs. In the table, `x` and `y` are positive finite values. `z` is the result of `x * y`, rounded to the nearest representable value. If the magnitude of the result is too large for the destination type, `z` is infinity. Because of rounding, `z` may be zero even though neither `x` nor `y` is zero.

| | `+y` | `-y` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| :-------- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| **`+x`** | `+z` | `-z` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| **`-x`** | `-z` | `+z` | `-0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`+0`** | `+0` | `-0` | `+0` | `-0` | `NaN` | `NaN` | `NaN` |
| **`-0`** | `-0` | `+0` | `-0` | `+0` | `NaN` | `NaN` | `NaN` |
| **`+∞`** | `+∞` | `-∞` | `NaN` | `NaN` | `+∞` | `-∞` | `NaN` |
| **`-∞`** | `-∞` | `+∞` | `NaN` | `NaN` | `-∞` | `+∞` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
| | **`+y`** | **`-y`** | **`+0`** | **`-0`** | **`+∞`** | **`-∞`** | **`NaN`** |
| :-------- | :-------: | :-------: | :-------: | :-------: | :-------: | :-------: | :-------: |
| **`+x`** | `+z` | `-z` | `+0` | `-0` | `+∞` | `-∞` | `NaN` |
| **`-x`** | `-z` | `+z` | `-0` | `+0` | `-∞` | `+∞` | `NaN` |
| **`+0`** | `+0` | `-0` | `+0` | `-0` | `NaN` | `NaN` | `NaN` |
| **`-0`** | `-0` | `+0` | `-0` | `+0` | `NaN` | `NaN` | `NaN` |
| **`+∞`** | `+∞` | `-∞` | `NaN` | `NaN` | `+∞` | `-∞` | `NaN` |
| **`-∞`** | `-∞` | `+∞` | `NaN` | `NaN` | `-∞` | `+∞` | `NaN` |
| **`NaN`** | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` | `NaN` |
21 changes: 21 additions & 0 deletions tools/MarkdownConverter.Tests/table-with-emphasis.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<jc val="center" />
</pPr>
<r>
<rPr>
<b />
</rPr>
<rPr>
<rStyle val="CodeEmbedded" />
</rPr>
Expand All @@ -140,6 +143,9 @@
<jc val="center" />
</pPr>
<r>
<rPr>
<b />
</rPr>
<rPr>
<rStyle val="CodeEmbedded" />
</rPr>
Expand All @@ -154,6 +160,9 @@
<jc val="center" />
</pPr>
<r>
<rPr>
<b />
</rPr>
<rPr>
<rStyle val="CodeEmbedded" />
</rPr>
Expand All @@ -168,6 +177,9 @@
<jc val="center" />
</pPr>
<r>
<rPr>
<b />
</rPr>
<rPr>
<rStyle val="CodeEmbedded" />
</rPr>
Expand All @@ -182,6 +194,9 @@
<jc val="center" />
</pPr>
<r>
<rPr>
<b />
</rPr>
<rPr>
<rStyle val="CodeEmbedded" />
</rPr>
Expand All @@ -196,6 +211,9 @@
<jc val="center" />
</pPr>
<r>
<rPr>
<b />
</rPr>
<rPr>
<rStyle val="CodeEmbedded" />
</rPr>
Expand All @@ -210,6 +228,9 @@
<jc val="center" />
</pPr>
<r>
<rPr>
<b />
</rPr>
<rPr>
<rStyle val="CodeEmbedded" />
</rPr>
Expand Down

0 comments on commit bfe7c76

Please sign in to comment.