ipysheet
ipysheet copied to clipboard
Float turned into int along the way
Using master
Good:

Not so good:

I think this is due to the deserialization on the back-end in Python. When Python receives a number that "appears" to be an integer, it will cast it to integer. The fact that JavaScript does not have integers is annoying...
I was thinking that, maybe, instead of having numeric cell type, we should have int and float cell types, and validate the value both on the front-end and on the back-end.
Is there a way to force a fixed number of digits? If I type 2.1 into a cell with numeric_format='0.00' I still get 2.1, not 2.10
Interesting, that is another issue. And it might be easier to fix. I'll see if I can fix this one.
I cannot reproduce your issue, what version are you using?

Very sorry Martin, was using the wrong env when I wrote https://github.com/QuantStack/ipysheet/issues/92#issuecomment-473959949
No problem! :)