Greetings,
Simple question, taking your example for factorials, how would I need to
change writeln to print out the correct value for say 150! in exponential
form, in C would be printf("%le", bignum);
Or you could point me to where this is in the documentation?
Regards,
-Tyler
proc factorial(x: int) : int{
if x < 0 then
halt("factorial -- Sorry, this is not the gamma procedure!");
return if x == 0 then 1 else x * factorial(x-1);}
writeln("A simple procedure");writeln("150! is ", factorial(150));writeln();
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers