I want to round number upto two decimal places in javascript.
I have found many posts on SO saying `.toFixed` method's behavior is unpredictable for different browsers.

And found this solution in many places, that are accepted with no exception

```
Math.round(yournumber * 100 ) / 100

```

But I found correct but some wrong results also from this calculation like 

```
Math.round( 1.27532423 * 100 ) / 100  = 1.28 // this seems correct
Math.round( 1.275 * 100 ) / 100       = 1.27 // as I understand it should also 1.28
Math.round( 1.276 * 100 ) / 100       = 1.28 

```

Am I missing something or my understanding is not correct?

**Edit**

Just found that 

`1.275 * 100` is returning `127.49999999999999` and that is the reason, if it returns `127.5`, it will yield correct result.

But why it is returning this `127.49999999999999` ????