Skip to content
Code-Schnipsel Gruppen Projekte
Commit 431d357c erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'next' into 'master'

Next

See merge request !26
Übergeordnete b0a04d42 1d663003
No related branches found
No related tags found
3 Merge Requests!52Update 'next-3.x' with latest changes from 'main',!48Add QUIQQER Tooling,!26Next
Pipeline #4721 bestanden mit Phase
in 31 Sekunden
......@@ -12,6 +12,9 @@
use function array_key_exists;
use function floatval;
use function is_array;
use function is_float;
use function is_int;
use function is_numeric;
use function is_string;
use function preg_replace;
use function round;
......@@ -174,12 +177,16 @@ public function toArray(): array
* Return the float amount for the currency
* example for the most currencies -> 0.11223 = 0.11
*
* @param float|string $amount
* @param float|int|string $amount
* @param null|QUI\Locale $Locale -optional
* @return float
*/
public function amount($amount, QUI\Locale $Locale = null): float
{
if (is_float($amount) || is_int($amount)) {
return $amount;
}
if (!$Locale) {
$Locale = $this->Locale;
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren