[whatwg/encoding] "In equations, all numbers are integers, additio..." (#66)

https://encoding.spec.whatwg.org/#terminology

> In equations, all numbers are integers, addition is represented by "\+", subtraction by "−", multiplication by "×", division by "/", calculating the remainder of a division \(also known as modulo\) by "%", logical left shifts by "<<", logical right shifts by ">>", bitwise AND by "&", and bitwise OR by "\|"\. floor\(x\) is the largest integer not greater than x\.

"all numbers are integers" contradicts "floor(x) is the largest integer not greater than x". To be more specific, it implies that x is an integer and therefore floor(x) is a no-op.

I suggest defining "/" as integer division and dropping all mentions of floor() from the spec. floor(pointer / 10 / 126 / 10) should be changed to pointer / (10 * 126 * 10) to avoid loss of precision, and similarly with floor(pointer / 10 / 126).

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/issues/66

Received on Friday, 29 July 2016 04:50:58 UTC