Total Complexity | 9 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Base |
||
9 | { |
||
10 | /** |
||
11 | * BASE. |
||
12 | * |
||
13 | * Converts a number into a text representation with the given radix (base). |
||
14 | * |
||
15 | * Excel Function: |
||
16 | * BASE(Number, Radix [Min_length]) |
||
17 | * |
||
18 | * @param mixed $number expect float |
||
19 | * @param mixed $radix expect float |
||
20 | * @param mixed $minLength expect int or null |
||
21 | * |
||
22 | * @return string the text representation with the given radix (base) |
||
23 | */ |
||
24 | 15 | public static function funcBase($number, $radix, $minLength = null) |
|
50 |