Problems? Is your data what you think it is? | |
PerlMonks |
Question:by Anonymous Monk |
on Nov 07, 2001 at 02:33 UTC ( [id://123711]=note: print w/replies, xml ) | Need Help?? |
say you have: $half = 1/2; and you want to print $half so it appears as: .500
printf ("%.3f", $half);
In Section
Tutorials
|
|