[Jprogramming] dyad ": rounding error
Roger Hui
rhui000 at shaw.ca
Mon Mar 19 23:45:42 HKT 2007
The difference is that the dyad ": depends on the
C library routines whereas 8!:x do the programming
themselves and take more care. I'll look into it.
It is likely that a fix will make ": slower.
Thanks for the report.
----- Original Message -----
From: bill lam <bbill.lam at gmail.com>
Date: Sunday, March 18, 2007 11:14 pm
Subject: [Jprogramming] dyad ": rounding error
> On both J504 and J601, dyad ": sometimes does not round properly
> on some
> numbers, eg.
> 0j2 ": 0.295
> 0.29
> 0j3 ": 0.2995
> 0.299
>
> incidentally 8!:x family of J601 does not have this problem,
> '0.2' (8!:0) 0.295
> +----+
> |0.30|
> +----+
> '0.2' (8!:1) 0.295
> +----+
> |0.30|
> +----+
> '0.2' (8!:2) 0.295
> 0.30
> '0.3' (8!:2) 0.2995
> 0.300
More information about the Programming
mailing list