Compare commits

...

3 commits

Author SHA1 Message Date
Richard van der Hoff 9f2661c82a
Apply suggestion from @richvdh 2026-02-24 16:22:46 +00:00
Kierre 65ccfc1dd7
infinity and NaN note 2026-02-24 09:39:24 -05:00
Kierre 393714ce54
numeric values may no longer be formatted as floats 2026-02-24 09:37:40 -05:00
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ When the value is a float
* Second, the value is truncated at the decimal point: `51146.98` becomes `51146`.
Values outside the range represented by IEE754 binary64 (a "double") cause the
powerlevel event to be rejected.
powerlevel event to be rejected, as do `Infinity`, `-Infinity` and `NaN`.
For example, this is a valid `m.room.power_levels` event in this room version:

View file

@ -42,7 +42,8 @@ in [room version 5](/rooms/v5).
### Event format
{{% added-in v=6 %}} Through enforcement of [Canonical JSON](#canonical-json),
the `depth` limit has been reduced in this room version.
the `depth` limit has been reduced in this room version, and numeric values may
no longer be formatted as floats.
{{% rver-fragment name="v6-event-format" %}}