|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Question:by Anonymous Monk |
| on Nov 06, 2001 at 21:33 UTC ( [id://123711]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
say you have: $half = 1/2; and you want to print $half so it appears as: .500
printf ("%.3f", $half);
In Section
Tutorials
|
|
||||||||||||||||||||||||||||||