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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.