cat / 012
clone

a spreadsheet for the terminal: lotus 1-2-3 looks, google sheets keys and formulas, one go binary

ROUND keeps exact inputs exact; Sheets' ROUND(1.23456789012345, 14) differs on purpose

Dami committed 7d292fe
Adding half a unit before cutting to 15 digits matched that one row but
turned ROUND(1.5, 14) into 1.50000000000001. ROUND rounds the shortest
decimal half away from zero again, with regression tests.
commit
7d292fece5cc049d9f9a371d907ceb9ed8f4c0f8
parent
c20d59f81caa4211c2ee0f32f40d24c7577c2595
author
Dami <dami.etoile@gmail.com>
kind
fix risk score 2.0 of 3, Jev's estimate
6 files changed, +14 -17
Mdocs/reference/functions.md2+-
Minternal/fileio/testdata/sheets_corpus.tsv2+-
Minternal/functions/everyday.go2+-
Minternal/numfmt/numfmt_test.go5++++-
Minternal/numfmt/round.go12+-----------
Minternal/sheet/functions_sheets_test.go8++++++--
M docs/reference/functions.md +1 -1
M internal/fileio/testdata/sheets_corpus.tsv +1 -1
M internal/functions/everyday.go +1 -1
M internal/numfmt/numfmt_test.go +4 -1
M internal/numfmt/round.go +1 -11
M internal/sheet/functions_sheets_test.go +6 -2