NumberUtil

A class of utilities for dealing with numbers.


Description Description


Source Source

File: src/Utilities/NumberUtil.php


			

Top ↑

Methods Methods

  • round — Round a number using the built-in `round` function, but unless the value to round is numeric (a number or a string that can be parsed as a number), apply 'floatval' first to it (so it will convert it to 0 in most cases).

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.