Skip to content

Commit aa8ca2b

Browse files
committed
upd
1 parent 6be59b8 commit aa8ca2b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/conversions.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ Constant coercions occur implicitly both at compile-time and runtime, converting
3030
| Type constant to `*` or `Object` or union containing `Class` | Equivalent constant of the target type. |
3131
| Numeric constant to another compatible numeric type | Numeric constant with value coerced to target type. |
3232
| Numeric constant to union containing at least one compatible numeric type | Numeric constant of the target type containing value coerced to the containing numeric type, preferring the *same* numeric type or otherwise the first numeric type found. |
33+
| `NaN` to `float` | `NaN` |
34+
| `-Infinity` to `float` | `-Infinity` |
35+
| `+Infinity` to `float` | `+Infinity` |
36+
| `NaN` to `decimal` | `NaN` |
37+
| `-Infinity` to `decimal` | `-Infinity` |
38+
| `+Infinity` to `decimal` | `+Infinity` |
3339

3440
## Implicit coercion
3541

@@ -63,7 +69,7 @@ Explicit conversions occur when resolving `v as T` or `T(v)`, after trying an im
6369
| To `Boolean` | Evaluates truthy value. |
6470
| To `Number` | Forced conversion to double-precision floating point. |
6571
| To `float` | Forced conversion to single-precision floating point. |
66-
| To `decimal` | Forced conversion to quadruple-precision floating point (binary128). |
72+
| To `decimal` | Forced conversion to Decimal128 floating point. |
6773
| To `int` | Forced conversion to 32-bit signed integer. |
6874
| To `uint` | Forced conversion to 32-bit unsigned uninteger. |
6975
| To `BigInt` | Forced conversion to an arbitrary range integer. |

src/types/decimal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# decimal
22

3-
The `decimal` type represents an IEEE 754 quadruple-precision floating point (binary128).
3+
The `decimal` type represents a 128 bit IEEE 754 floating point (Decimal128).

0 commit comments

Comments
 (0)