I get this unexpected result in round:
Code: Select all
> (round 8.3 -1)
8.300000000000001
> (round 8.30 -1)
8.300000000000001
> (round 8.430 -1)
8.4
> (round 8.4 -1)
8.4
> (round 8.2 -1)
8.199999999999999
>
Regards
Hans-Peter
Code: Select all
> (round 8.3 -1)
8.300000000000001
> (round 8.30 -1)
8.300000000000001
> (round 8.430 -1)
8.4
> (round 8.4 -1)
8.4
> (round 8.2 -1)
8.199999999999999
>
Code: Select all
(module "qa-bench")
Code: Select all
(map (fn (x) (set(sym(first x))(last x)))assoclst)
Code: Select all
(("a" 1) ("b" 2) ("a" 3) ("b" 4) ("a" 5) ("b" 6))
Code: Select all
((("a" 1) ("b" 2)) (("a" 3) ("b" 4)) (("a" 5) ("b" 6)))
Code: Select all
> (map list '(1 2 3) '(4 5 6))
((1 4) (2 5) (3 6))