Bug 18733 – std.math.remquo's behavior with infinity is platform dependent

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-04-05T12:47:15Z
Last change time
2024-12-01T16:33:25Z
Assigned to
No Owner
Creator
Jack Stouffer
Moved to GitHub: phobos#10328 →

Comments

Comment #0 by jack — 2018-04-05T12:47:15Z
version(X86_64) assert(remquo(1.0, real.infinity, n) == 1.0); else assert(remquo(1.0, real.infinity, n) is -real.nan); D should not have these inconsistencies, and should unify the behavior of C libraries into a logical whole.
Comment #1 by robert.schadek — 2024-12-01T16:33:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10328 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB