view tests/mini/real1.d @ 1337:b6e819244062

In config file: replace %%ldcbinarypath%% with the path to the ldc executable.
author Christian Kamm <kamm incasoftware de>
date Sun, 10 May 2009 17:58:09 +0200
parents cc40db549aea
children
line wrap: on
line source

module mini.real1;

extern(C)
{
real tanl(real x);
int printf(char*, ...);
}

void main()
{
    real ans = tanl(0.785398163398);
    printf("%llf\n", ans);
    assert(ans > 0.999 && ans < 1.001);
}