@@ 504-507 (lines=4) @@ | ||
501 | if ( $length < $decimals ) |
|
502 | $decimals = $length; |
|
503 | ||
504 | if ( 'i18n' == pods_var( self::$type . '_format', $options ) ) |
|
505 | $value = number_format_i18n( (float) $value, $decimals ); |
|
506 | else |
|
507 | $value = number_format( (float) $value, $decimals, $dot, $thousands ); |
|
508 | ||
509 | return $value; |
|
510 | } |
@@ 666-671 (lines=6) @@ | ||
663 | $decimals = $length; |
|
664 | } |
|
665 | ||
666 | if ( 'i18n' == pods_v( self::$type . '_format', $options ) ) { |
|
667 | $value = number_format_i18n( (float) $value, $decimals ); |
|
668 | } |
|
669 | else { |
|
670 | $value = number_format( (float) $value, $decimals, $dot, $thousands ); |
|
671 | } |
|
672 | ||
673 | // Additional output handling for decimals |
|
674 | $decimal_handling = pods_v( self::$type . '_decimal_handling', $options, 'none' ) ; |