unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Wolfgang Jenkner <wjenkner@inode.at>
To: Jay Belanger <jay.p.belanger@gmail.com>
Cc: 19582@debbugs.gnu.org
Subject: bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units
Date: Tue, 13 Jan 2015 17:25:23 +0100	[thread overview]
Message-ID: <85387e8x70.fsf@iznogoud.viz> (raw)
In-Reply-To: <851tmyah3n.fsf@iznogoud.viz>

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 ?
 





  reply	other threads:[~2015-01-13 16:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13 14:22 bug#19582: 25.0.50; [PATCH] Calc: glitches with negation of units Wolfgang Jenkner
2015-01-13 15:55 ` Jay Belanger
2015-01-13 16:01   ` Wolfgang Jenkner
2015-01-13 16:06     ` Jay Belanger
2015-01-13 16:25       ` Wolfgang Jenkner [this message]
2015-01-13 16:34         ` Jay Belanger
2015-01-13 16:48           ` Jay Belanger
2015-01-15 23:55       ` Wolfgang Jenkner
2015-01-18 16:29         ` Wolfgang Jenkner
2016-02-23 11:23         ` Lars Ingebrigtsen
2015-01-13 19:39     ` Wolfgang Jenkner
2015-01-13 21:57       ` Jay Belanger
2015-01-28 15:11       ` Jay Belanger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85387e8x70.fsf@iznogoud.viz \
    --to=wjenkner@inode.at \
    --cc=19582@debbugs.gnu.org \
    --cc=jay.p.belanger@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).