[ create a new paste ] login | about

Project: ncu
Link: http://ncu.codepad.org/dGevOLWp    [ raw code | output | fork ]

GiM - D, pasted on Sep 18:
1
2
3
4
5
6
7
8
9
import std.stdio;

void main()
{
    cfloat temp = 1.0 - float.infinity *1.0i; 
    cfloat temp2 = 0.0 + 1.0i;
    writefln("test1: ", temp * temp2);
    writefln("test2: ", temp * 1.0i);
}


Output:
1
2
test1: inf+nani
test2: inf+1i


Create a new paste based on this one


Comments: