GsuLinuX wrote:

> How can i convert 
>    
> 1.  "  $a = 29.7548925547539  -------------------->   $a = 29.75      "


i'd use printf:

my $a = 29.7548925547539;
printf "%5.2f\n", $a;  # this prints 29.75

> 2.  "  $b = 2345342 ------------------------------> $b = 2,345,342    "


look into number::format for this one:

http://search.cpan.org/search?dist=Number-Format


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to