actually nevermind.
How do I only show two decimals??

The current variable is this equak to this
26.005747126437

    Just use it as such (typecast to int in case of float?), the numeric portion of a string will be converted to the number.

      How do I only show two decimals??

      Use [man]round/man

      Read the PHP Manual at php.net

        Write a Reply...