Michael Sperber writes:
Do you want me to hold off on pushing simple-more.el?
Not particularly, I just want want these trivial additions collected
in one file. I have a small preference for the name "simple-more" as
"more accurate" IMHO, but if you don't feel like checking and fixing
any references to "subr-more", adding them to subr-more.el is fine.
Rant follows, JBOS;DR.[1]
I disagree. IEEE 754 floating point arithmetic is defined as
applying
the corresponding mathematical operation and then rounding.
Sure, but *no rounding occurs in the cases that shock users!* You'd
need (/ TO INC) > 2^53 to get *any* rounding effect.
So it's the arithmetic operation that destroys the exact result.
(number-sequence 1.25 1.625 0.125) is going to give the expected
result, as is (number sequence 1 1000000 (/ 1.0 65536)). No?
On the other hand, converting from a string representation such as
"0.2" means you're already screwed. By the time the number is
internal representation it's *already* damaged beyond repair.
[N]ote that all of these are straight imports from GNU Emacs.
I know. That's exactly why I bothered to check and discover the
horror hidden within. ;-) Porting from GNU requires more effort than
simply synchronizing APIs, sad to say.
Footnotes:
[1] Just blowing off steam; don't read. I know most of you will,
anyway. Thanks! :-)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta