Rounding problem (#336)
Rounding problem (#336)

* Corret rounding problem

The function is rouding some numbers wrong:

Example 1: number_format(35.855,2,",",".")
Result 1: 35,85 the corret result is 35,86

Example 2: number_format(33.6750,2,",",".")
Result 1: 33,67 the corret result is 33,68

my changes fix that, i got the rounding fuction from: 
https://stackoverflow.com/questions/11832914/round-to-at-most-2-decimal-places-only-if-necessary

* Rounding problem

Corrected some spaces and double quotes.
Changed "includes" to indexOf.

* Create number_format.js

* Update number_format.js

kvz/phpjs,kvz/phpjs,kvz/phpjs,kvz/phpjs