2 param Problems

Walter Bright newshound1 at digitalmars.com
Sun Nov 30 10:58:50 PST 2008


Fabian Claßen wrote:
> 	double zahl = add(1, 5.6, 41, "Hello");
> 	writefln("%d", zahl);
[...]
> 
> When I try to run this codes there is printed following message in the cmd:
> 
> Error: std.format floating
> 
> Please help me. I have no idea.


%d is for integral arguments, not floating point ones. Try %s.



More information about the Digitalmars-d mailing list