mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-05-02 07:04:09 +02:00
Compare commits
3 commits
cc2623f8da
...
9f2661c82a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f2661c82a | ||
|
|
65ccfc1dd7 | ||
|
|
393714ce54 |
|
|
@ -6,7 +6,7 @@ When the value is a float
|
||||||
* Second, the value is truncated at the decimal point: `51146.98` becomes `51146`.
|
* 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
|
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:
|
For example, this is a valid `m.room.power_levels` event in this room version:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,8 @@ in [room version 5](/rooms/v5).
|
||||||
### Event format
|
### Event format
|
||||||
|
|
||||||
{{% added-in v=6 %}} Through enforcement of [Canonical JSON](#canonical-json),
|
{{% 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" %}}
|
{{% rver-fragment name="v6-event-format" %}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue