Bug 20147 – Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-08-20T18:26:12Z
Last change time
2019-09-07T10:07:32Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2019-08-20T18:26:12Z
Currently opCmp and opEquals only accept built-in integer types.
Comment #1 by dlang-bot — 2019-08-20T18:38:18Z
@n8sh updated dlang/phobos pull request #7151 "std.bigint.BigInt: allow casting to & comparison with floating point numbers" fixing this issue:
- Fix Issue 20147 - Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers
Quadruple precision floating point not supported.
https://github.com/dlang/phobos/pull/7151
Comment #2 by dlang-bot — 2019-09-06T02:03:34Z
@n8sh created dlang/phobos pull request #7172 "Fix Issue 20147 - Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers" fixing this issue:
- Fix Issue 20147 - Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers
https://github.com/dlang/phobos/pull/7172
Comment #3 by dlang-bot — 2019-09-07T10:07:32Z
dlang/phobos pull request #7172 "Fix Issue 20147 - Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers" was merged into master:
- ce3e7f6dbbb74bcba95079a106557727c1180162 by Nathan Sashihara:
Fix Issue 20147 - Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers
https://github.com/dlang/phobos/pull/7172