I am surprised at Handsontable’s display of numbers with decimal places, when you declare type: "numeric"
.
Firstly, if you type in 56.78
it displays 57
. It rounds to nearest integer. I really think the documentation should at least draw attention to that default behaviour.
Secondly, there does not seem to be any way to display a number with whatever decimal places the user happens to type? To get 56.78
displayed as such I must add format: "0.00"
, which specifies precisely 2 decimal places. However, suppose user enters 5
, 6.7
and 7.8965
in 3 other cells. I do not want rounding to a fixed number of decimal places, and I do not want trailing zeroes at the right. I cannot find any way of achieving that? Seems extraordinary.
Note: I have to keep using Hot 0.25, and hence numeraljs
. However, from what I can see of the examples of the new numbrojs
it seems to behave exactly the same anyway. Do either of them allow arbitrary decimal places?