develooper Front page | perl.beginners | Postings from January 2002

RE: decimal point

Thread Next
Darren Simpson
January 28, 2002 01:59
RE: decimal point
Message ID:
did i say 10? i meant 100

-----Original Message-----
From: Darren Simpson 
Sent: 28 January 2002 08:48
To: 'Stuart Clark'; Perl List
Subject: RE: decimal point

i would try dividing the number by 10

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

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
Can anyone help please
Stuart Clark

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About