I want to achieve below round decimal numbers in javascript :

```
Before  | After
10.05   | 10.05  
10.04   | 10.00
10.02   | 10.00
10.07   | 10.10

```

As I made a research on google and stackoverflow, I am able to do this:

```
number = Math.round(number* 20) / 20;
number = parseFloat(number).toFixed(2);

```

but the result will be: 

```
Before  | After
10.05   | 10.05  
10.04   | 10.00
10.07   | 10.05 // supposed to be 10.10 if decimal is > 0.5

```

May I know how to achieve this?