If you wan’t to round off decimal value to nearest heights value you can use bellow code

Output of above code

Input value 44.61
Output: 44.65
Input value 44.68
Output: 44.70

Hope this will help you 🙂

Posted in: PHP