all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#25255: Emacs calculator evalutes lcm to a negative number
@ 2016-12-23 10:32 Bug Poster
  2017-02-05 10:28 ` Peder O. Klingenberg
  0 siblings, 1 reply; 3+ messages in thread
From: Bug Poster @ 2016-12-23 10:32 UTC (permalink / raw)
  To: 25255

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-24  1:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-23 10:32 bug#25255: Emacs calculator evalutes lcm to a negative number Bug Poster
2017-02-05 10:28 ` Peder O. Klingenberg
2017-02-24  1:30   ` Glenn Morris

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.