ZuUndAbschlaege wip
This commit is contained in:
1 parent
622b37bb90
commit
c7f69d2efe
4 files changed
+27
-28
No files matched your search
@@ -15,16 +15,16 @@ class Format
|
||||
|
||||
public static function index($value)
|
||||
{
|
||||
if (is_numeric($value) && $value * 1 > 0) {
|
||||
if (is_numeric($value) && $value * 1 != 0) {
|
||||
return number_format($value, 2, '.', '.');
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
public static function dezimal($value, $stellen = 2)
|
||||
public static function dezimal($value, $stellen)
|
||||
{
|
||||
if (is_numeric($value) && $value * 1 > 0) {
|
||||
if (is_numeric($value) && $value != 0) {
|
||||
return number_format($value, $stellen, ',', '.');
|
||||
} else {
|
||||
return '';
|
||||
|
||||
Reference in new issue
Block a user