Files
nutzwerte_fi4/app/Actions/Generate/Utilities/Format.php
T
2025-10-21 07:24:54 +02:00

34 lines
672 B
PHP

<?php
namespace App\Actions\Generate\Utilities;
class Format
{
public static function seite($value)
{
if ($value * 1 > 0) {
return $value;
} else {
return '';
}
}
public static function index($value)
{
if (is_numeric($value) && $value * 1 > 0) {
return number_format($value, 2, '.', '.');
} else {
return '';
}
}
public static function dezimal($value, $stellen = 2)
{
if (is_numeric($value) && $value * 1 > 0) {
return number_format($value, $stellen, ',', '.');
} else {
return '';
}
}
}