File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ const keyvalues = Dict(
47
47
# Floating point values written as integer strings. Useful for testing behaviours of
48
48
# trunc, floor, and ceil.
49
49
const INTS = Dict (
50
- 1.22 => " 12199999999999999733546474089962430298328399658203125" ,
51
- 1.23 => " 1229999999999999982236431605997495353221893310546875" ,
52
- 1.51 => " 15100000000000000088817841970012523233890533447265625" ,
53
- 2.2 => " 220000000000000017763568394002504646778106689453125" ,
54
- 2.3 => " 229999999999999982236431605997495353221893310546875"
50
+ v => replace (@sprintf (" %.200f" , v), " ." , " " )
51
+ for v in [
52
+ 1.22 ,
53
+ 1.23 ,
54
+ 1.51 ,
55
+ 2.2 ,
56
+ 2.3 ,
57
+ ]
55
58
)
56
- for (k, v) in INTS
57
- INTS[k] = rpad (v, 201 , " 0" )
58
- end
59
59
const smaller_than_decimal = [1.22 , 1.23 , 2.3 ]
60
60
const bigger_than_decimal = [1.51 , 2.2 ]
61
61
You can’t perform that action at this time.
0 commit comments