Jump to content

Is there a way to limit the # of digits when using PHP to do arithmetic?


BadGoat

Recommended Posts

Hello!

I am wondering if there is a way to limit the # of digits when using PHP to perform mathematical computations? There are times when the output would have infinite points after the decimal, I am hoping there is a way to trim the # of digits... So far in my books I cannot find any info. Does anyone have  a way to do this?

Thanks!

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.