[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units
From: |
Wolfgang Jenkner |
Subject: |
bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units |
Date: |
Tue, 13 Jan 2015 17:25:23 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (berkeley-unix) |
On Tue, Jan 13 2015, Jay Belanger wrote:
> Since 100 and (float 1 2) aren't the same, that might be a bug of some
> kind.
Sure, but
(math-equal 100 '(float 1 2)) => t
and (info "(calc) Predicates") states
-- Function: math-equal x y
Returns true if X and Y are numerically equal, either because they
are `equal', or because their difference is `zerop'. [...]
so, IIUC, mathematically, they are as equal as it gets in calc.
On the other hand, I'm not sure if calculations with (float ...)
are exact (if possible) in calc ?