aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPierre Roux2020-03-17 16:34:00 +0100
committerPierre Roux2020-03-25 12:42:54 +0100
commit8b99dfe028faf76c23811eaf9cee8df88d231f87 (patch)
tree7bbff5b2d23b7dac2d9f715d8595f89a9c44c08a /kernel
parentbc70bb31c579b9482d0189f20806632c62b26a61 (diff)
Nicer printing for decimal constants in R
Print 1.5 as 1.5 and not 15e-1. We choose the shortest representation with tie break to the dot notation (0.01 rather than 1e-3). The printing remains injective, i.e. 12*10^2 is printed 12e2 in order not to mix it with 1200 and 12/10^1 is not mixed with 120/10^2, the first being printed as 1.2 and the last as 1.20.
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions