Skip to content

Commit

Permalink
add DecInt
Browse files Browse the repository at this point in the history
  • Loading branch information
Pharaonic authored Jan 29, 2021
1 parent 7459802 commit 4f7cf5a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,29 @@ function ReadableHumanNumber(int $input, bool $showDecimal = false, int $decimal
*
* @param int $input
* @param int $decimals
* @param string $point
* @param string $delimiter
* @return string
**/
function ReadableDecimal($input, int $decimals = 2, string $point = '.', string $delimiter = ','): ?string
{
return Readable::getDecimal($input, $decimals, $point, $delimiter);
}

/**
* Get Readable ( Decimal Number => Decimal || Integer )
*
* @param int $input
* @param int $decimals_length
* @param string $point
* @param string $delimiter
* @return string
**/
function ReadableDecInt($input, int $decimals_length = 2, string $point = '.', string $delimiter = ','): ?string
{
return Readable::getDecInt($input, $decimals_length, $point, $delimiter);
}

// DATE & TIME

/**
Expand Down Expand Up @@ -87,7 +103,6 @@ function ReadableTime($input, $is12 = false, bool $hasSeconds = false, string $t
function ReadableDateTime($input, $is12 = false, bool $hasSeconds = false, string $timezone = null): ?string
{
return Readable::getDateTime($input, $is12, $hasSeconds, $timezone);

}

/**
Expand All @@ -101,7 +116,6 @@ function ReadableDateTime($input, $is12 = false, bool $hasSeconds = false, stri
function ReadableDiffDateTime($old, $new = null, string $timezone = null): ?string
{
return Readable::getDiffDateTime($old, $new, $timezone);

}

/**
Expand Down

0 comments on commit 4f7cf5a

Please sign in to comment.