book icon indicating copy to clipboard operation
book copied to clipboard

Fix ch03-02-data-types: rounding of integer division

Open olga24912 opened this issue 3 years ago • 0 comments

Example:

let x = -5 / 2;
// x == -2

If it is "rounding down", then x == -3. But for -2 I think "rounding towards zero" is much more precise.

olga24912 avatar May 12 '22 13:05 olga24912