Jan 9, 2005 #1 subtelo Programmer Jan 9, 2005 25 US When do the calculation of division, how can I keep only two dicimal? For example, I want keep 0.67 instead of 0.66666666666.... when I do 2/3.
When do the calculation of division, how can I keep only two dicimal? For example, I want keep 0.67 instead of 0.66666666666.... when I do 2/3.
Jan 9, 2005 1 #2 columb IS-IT--Management Feb 5, 2004 1,231 EU use printf, not print. The format is very similar to the 'C' version. Full details on http://www.perldoc.com/perl5.8.0/pod/func/printf.html Columb Healy Upvote 0 Downvote
use printf, not print. The format is very similar to the 'C' version. Full details on http://www.perldoc.com/perl5.8.0/pod/func/printf.html Columb Healy
Jan 9, 2005 #3 columb IS-IT--Management Feb 5, 2004 1,231 EU You might want to check out http://www.perldoc.com/perl5.8.0/pod/func/sprintf.html as well as it has all the info you need Columb Healy Upvote 0 Downvote
You might want to check out http://www.perldoc.com/perl5.8.0/pod/func/sprintf.html as well as it has all the info you need Columb Healy
Jan 9, 2005 Thread starter #4 subtelo Programmer Jan 9, 2005 25 US Thank you Columb Healy. It is really what I want to do. Upvote 0 Downvote
Jan 9, 2005 #5 PaulTEG Technical User Sep 26, 2002 4,469 IE star the man, He helped you, it's the least you can do --Paul cigless ... Upvote 0 Downvote