Does it work properly if you use:
writef("Performance = %g\n", cast(double) n / (cast(double) ms1 * 1000.0));
Or similar? I believe the problem is (n) and (ms1). You could also use
like (n + 0) and (ms1 + 0)...
-[Unknown]

Does it work properly if you use:
writef("Performance = %g\n", cast(double) n / (cast(double) ms1 *
1000.0));
Or similar? I believe the problem is (n) and (ms1). You could also use
like (n + 0) and (ms1 + 0)...
-[Unknown]

Just move the parenthesis...
writef("Performance = %g\n", (cast(double)n) / ( (cast(double)ms1) * >
1000.0));
I think that the reason is that the form
'(' identifier ')'
looks like a C-style cast, as well as looking like a single-term
expression. It is because of this ambiguity that C-style casts are
deprecated.
--
Derek
Melbourne, Australia