Doing:
0 + 0.1 + 0.1 + 0.1
In Safari and Chrome results in:
0.30000000000000004
At least when displayed as a string, for example:
console.log( 0 + 0.1 + 0.1 + 0.1 );
Making the string assumption because the following returns 4:
0 + 0.1 + 0.1 + 0.1 + 0.1
What is the reason behind this?