Skip to content

Commit dace7d0

Browse files
authored
Register format decimal128 (#3209)
* Register format decimal128 * Update decimal128.md * Apply Darrel's suggestions
1 parent ee33a0f commit dace7d0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

registries/_format/decimal128.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
owner:
3+
issue:
4+
description: A decimal floating-point number with 34 significant decimal digits
5+
base_type: string, number
6+
layout: default
7+
---
8+
9+
# <a href="..">{{ page.collection }}</a>
10+
11+
## {{ page.slug }} - {{ page.description }}
12+
13+
Base type: `{{ page.base_type }}`.
14+
15+
The `{{page.slug}}` format represents a [128-bit decimal floating-point number](https://en.wikipedia.org/wiki/Decimal128_floating-point_format) as defined by IEEE 754 2008 and ISO/IEC/IEEE 60559:2011.
16+
17+
Representation as a JSON string is preferred as this avoids problems with recipients that parse JSON numbers into [binary64](https://en.wikipedia.org/wiki/Double-precision_floating-point_format) memory representation.
18+
19+
String representation allows expressing the special values `NaN`, `-INF`, and `INF` that cannot be expressed as JSON numbers.
20+
21+
{% if page.issue %}
22+
### GitHub Issue
23+
24+
* [#{{ page.issue }}](https://github.com/OAI/OpenAPI-Specification/issues/{{ page.issue }})
25+
{% endif %}
26+
27+
{% if page.remarks %}
28+
### Remarks
29+
30+
{{ page.issue }}
31+
{% endif %}

0 commit comments

Comments
 (0)