Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 356 Bytes

number.md

File metadata and controls

13 lines (9 loc) · 356 Bytes

This helper has 2 methods for converting a number format and to get a percentage.

Number::format($number, $prefix = '4')

Converts a given number to start with a prefix, useful to making sure mobile numbers start with a 0 only when they don't start with 0

Number::percentage($val1, $val2)

Get a percentage from the 2 given numbers.