Question: How to print percetages and group digits?


I'm developing an application in Maple 14. I'm using the code below to print a percentage:

# Printing a percentage.
printf("The value of x is %.1f%%%", x*100);

Is this the right way to print a percentage?

I also want to group digits (as in 1,959), but don't know how to do it.

Thanks in advance,

Carlos Mallen

Please Wait...