perl Perl - " How to truncate decimal places " 9:14 AM Unknown No comments #!/usr/bin/perl use strict; use warnings; my $Num = 1.3333; printf ("% .2f",$Num); Result : $perl blog.pl 1.33 Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comentários:
Post a Comment