GNU bug report logs - #25255
Emacs calculator evalutes lcm to a negative number

Previous Next

Package: emacs;

Reported by: Bug Poster <bugzilla-mail-box <at> yandex.ru>

Date: Fri, 23 Dec 2016 17:16:02 UTC

Severity: normal

Tags: patch

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bug Poster <bugzilla-mail-box <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs calculator evalutes lcm to a negative number
Date: Fri, 23 Dec 2016 19:32:19 +0900
GNU Emacs 24.3.1


This is formula of Least Common Multiple:

lcm(a, b) = |a * b| / gcd(a, b)


The calculator evaluates it, but doesn't take its absolute value.


Input:

5
n
<RET>
4
k
l

Output:

1: -20




This bug report was last modified 8 years and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.