Jump to content

round () Syntax Help


aljohnstone

Recommended Posts

My understanding is that in round() the comma seperates the parameters. The first parameter is the number that is being rounded which in this case is the value of the variable $data3['value'] and the second parameter is to how many places after the decimal which is in this case 2.

 

If I remove the comma it does not limit the number of decimal places it just messes up the number that is returned.

Link to comment
https://forums.phpfreaks.com/topic/228060-round-syntax-help/#findComment-1176057
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.