i would try dividing the number by 10

-----Original Message-----
From: Stuart Clark [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2002 01:57
To: Perl List
Subject: decimal point


Hi,
I am trying to move the decimal point 2 places to the the left.
 
Eg : To make 4536233 into 45362.33
 
I tried this 
$total = "4536233";
$total = sprintf("%0.2f",$total);
print "$total";
But I get this
4536233.00
 
Can anyone help please
 
Regards
Stuart Clark
 
 
 
 
 

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

Reply via email to