Revert "printing float values will have one more digit. (#13276) [backport]" (#13363)

This reverts commit b2c6db97f9.
This commit is contained in:
Timothee Cour
2020-02-08 00:30:24 -08:00
committed by GitHub
parent f3117d350e
commit e4415422fe
10 changed files with 41 additions and 45 deletions

View File

@@ -1,7 +1,7 @@
discard """
output: '''
(v: [(v: [0.0, 1.125]), (v: [2.25, 3.375])])
(v: [(v: [0.0, 1.125]), (v: [2.25, 3.375])])
(v: [(v: [0.0, 1.1]), (v: [2.2, 3.3])])
(v: [(v: [0.0, 1.1]), (v: [2.2, 3.3])])
'''
"""
@@ -13,7 +13,7 @@ type
var
a = M(v:[ V(v:[0.0,1.0]), V(v:[2.0,3.0]) ])
b = M(v:[ V(v:[0.0,0.125]), V(v:[0.25,0.375]) ])
b = M(v:[ V(v:[0.0,0.1]), V(v:[0.2,0.3]) ])
echo M(v: [V(v: [b.v[0].v[0] + a.v[0].v[0], b.v[0].v[1] + a.v[0].v[1]]),
V(v: [b.v[1].v[0] + a.v[1].v[0], b.v[1].v[1] + a.v[1].v[1]])])