Anonymous user
Price fraction: Difference between revisions
Updated D entry
m (Added Raven code for Price fraction) |
(Updated D entry) |
||
Line 713:
=={{header|D}}==
<lang d>import std.stdio, std.range;
double priceRounder(in double price) pure nothrow
Line 719:
assert(price >= 0 && price <= 1.0);
} body {
.58, .62, .66, .70, .74, .78, .82, .86,
.90, .94, .98, 1.00];
}
void main() {
foreach (const price; [0.7388727, 0.8593103, 0.826687, 0.3444635])
}</lang>
{{out}}
|