Anonymous user
Arithmetic/Rational: Difference between revisions
Updated D entry
(Fixed typo in D entry) |
(Updated D entry) |
||
Line 443:
real toReal() pure const /*nothrow*/ {
static if (is(T == BigInt))
return num.toLong /
else
return num /
}
Line 533:
foreach (immutable p; 2 .. 2 ^^ 19) {
auto sum = RatL(1, p);
immutable limit = 1 + cast(uint)
foreach (immutable factor; 2 .. limit)
if (p % factor == 0)
|