## #1744 closed defect (fixed)

# The Number.formatNumber() function in main.js is not correct in all cases

Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|

Priority: | major | Milestone: | BASE 3.2.2 |

Component: | web | Version: | |

Keywords: | Cc: |

### Description

For example, when formatting to two decimals.

`1.054`

results in`1.5`

. The leading 0 in the decimal part is lost.`1.999`

results in`1.100`

. The overflow in the decimal part is not carried over to the non-decimal part.

**Note:**See TracTickets for help on using tickets.

(In [6248]) Fixes #1744: The Number.formatNumber() function in main.js is not correct in all cases