(core) Fix issue that ints would be imported with a trailing ".0" from Google Sheets.

Summary:
Whole numbers, when imported from Excel into a Text column show up
without decimals (e.g. "300"), but when imported from Google Sheets show
up with decimals (e.g. "300.0"). The decimals are hard for end-users to
remove. Fix by treating whole numbers consistently as ints.

Test Plan: Added a fixture reproducing the issue, and a test case.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3800
This commit is contained in:
Dmitry S
2023-02-13 22:52:48 -05:00
parent cbf925aa00
commit 17569561bf
3 changed files with 14 additions and 0 deletions