myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
13.97k stars 1.67k forks source link

Rounded Bug at Division, elementary operation #656

Open noxsite opened 1 year ago

noxsite commented 1 year ago

Put this inside a cell:

= 2/3

It will return (a rounded) 0.67

Solve: At dist file the (dist/x-spreadsheet.js) I replaced this text:

D(l=o/a)>5?l.toFixed(2):l;return

to

D(l=o/a)>5?l.toFixed(14):l;return

Now = 2/3 will returns 0.6666666666667