apply suggestions from code review

This commit is contained in:
Kierre 2026-02-17 17:23:26 -05:00
parent 1d1fa4cb5b
commit cc2623f8da
No known key found for this signature in database
GPG key ID: 1C50B6A26C5B1C6E

View file

@ -5,8 +5,8 @@ When the value is a float
* First, exponential notation is applied: `5.114698E4` becomes `51146.98`
* Second, the value is truncated at the decimal point: `51146.98` becomes `51146`.
Any float greater than or equal to `1e309` must result in the powerlevel event
being rejected.
Values outside the range represented by IEE754 binary64 (a "double") cause the
powerlevel event to be rejected.
For example, this is a valid `m.room.power_levels` event in this room version: