rescript-tutorial
rescript-tutorial copied to clipboard
Chap 2, Ex 1, Precedence in Expressions
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.