mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-03 12:35:48 -05:00
The determinant and the translation numerators are rounded before the division, so a value whose exact quotient is below the overflow midpoint could round to infinity and throw a RangeError, and one at or past it could come out finite. When the rounded quotient overflows or lies within eight steps of Number.MAX_VALUE, the exact quotient is now compared with the midpoint between Number.MAX_VALUE and 2^1024 from exact product parts. An infinite rounded quotient below it is replaced by the number the exact quotient rounds to.