Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. // (57.8/1.36/1.36) = 31.25 ===(truncate to 1 dec. place), expected ===> 31.3
  2. // however, the output is 31.2!
  3. document.write((57.8/1.36/1.36).toFixed(1));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement