Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

round()-problem, different results

Status
Not open for further replies.

commun1

Programmer
May 26, 2004
41
0
0
DE
heya all.

I'm currently having the problem that a value is not correctly being rounded by round().

here's an example:

$value = 23.50;
$value2 = round($value*0.03, 2);

$value2 should be 0.71 but however it's only 0.7, so it doesn't give me the last digit.

I don't have that problem on my local machine, just on the remote system.

any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top