Round() function :The round() function is used to find rounds a float number. It has three parameters and returns the round value. Syntax:
Example1Output: Befor using round() function : 3.96754,2 After using round() function : 3.97 Example2Output: Befor using round() function : 7.045,2 After using round() function : 7.05 Example3Output: Befor using round() function : 7.055,2 After using round() function : 7.06 Example4Output: 2 -2 1 -1 2 -2 1 -1
Next TopicPHP Math
|