Space this guy a bit please...
```
return Math.round(num * Math.pow(10, dec)) / Math.pow(10, dec);
```