@@ -43,13 +43,29 @@ function ReadableHumanNumber(int $input, bool $showDecimal = false, int $decimal
43
43
*
44
44
* @param int $input
45
45
* @param int $decimals
46
+ * @param string $point
47
+ * @param string $delimiter
46
48
* @return string
47
49
**/
48
50
function ReadableDecimal ($ input , int $ decimals = 2 , string $ point = '. ' , string $ delimiter = ', ' ): ?string
49
51
{
50
52
return Readable::getDecimal ($ input , $ decimals , $ point , $ delimiter );
51
53
}
52
54
55
+ /**
56
+ * Get Readable ( Decimal Number => Decimal || Integer )
57
+ *
58
+ * @param int $input
59
+ * @param int $decimals_length
60
+ * @param string $point
61
+ * @param string $delimiter
62
+ * @return string
63
+ **/
64
+ function ReadableDecInt ($ input , int $ decimals_length = 2 , string $ point = '. ' , string $ delimiter = ', ' ): ?string
65
+ {
66
+ return Readable::getDecInt ($ input , $ decimals_length , $ point , $ delimiter );
67
+ }
68
+
53
69
// DATE & TIME
54
70
55
71
/**
@@ -87,7 +103,6 @@ function ReadableTime($input, $is12 = false, bool $hasSeconds = false, string $t
87
103
function ReadableDateTime ($ input , $ is12 = false , bool $ hasSeconds = false , string $ timezone = null ): ?string
88
104
{
89
105
return Readable::getDateTime ($ input , $ is12 , $ hasSeconds , $ timezone );
90
-
91
106
}
92
107
93
108
/**
@@ -101,7 +116,6 @@ function ReadableDateTime($input, $is12 = false, bool $hasSeconds = false, stri
101
116
function ReadableDiffDateTime ($ old , $ new = null , string $ timezone = null ): ?string
102
117
{
103
118
return Readable::getDiffDateTime ($ old , $ new , $ timezone );
104
-
105
119
}
106
120
107
121
/**
0 commit comments