rescript-tutorial icon indicating copy to clipboard operation
rescript-tutorial copied to clipboard

Chap 2, Ex 1, Precedence in Expressions

Open shaileshaanand opened this issue 4 years ago • 0 comments

let x = (220 - 200) * 5 / 100 + 25   // x = 26
let y = (220 - 200) * (5 / 100) + 25 // y = 25

The exercise is ambiguous as 5/100 evaluates to 0.

shaileshaanand avatar Mar 03 '21 17:03 shaileshaanand