LDC 0.11.0 Beta 3

bearophile bearophileHUGS at lycos.com
Fri Jun 7 18:07:33 PDT 2013


> import std.math: fmod;
> import std.stdio: printf;
> void main() {
>     double r = fmod(2.3 + 3.0, 3.0);
>     printf("%f\n", r);
> }

And this works with ldc2:

import core.stdc.math: fmod;

Bye,
bearophile


More information about the digitalmars-d-ldc mailing list