@@ 500-503 (lines=4) @@ | ||
497 | if ( $length < $decimals ) |
|
498 | $decimals = $length; |
|
499 | ||
500 | if ( 'i18n' == pods_var( self::$type . '_format', $options ) ) |
|
501 | $value = number_format_i18n( (float) $value, $decimals ); |
|
502 | else |
|
503 | $value = number_format( (float) $value, $decimals, $dot, $thousands ); |
|
504 | ||
505 | return $value; |
|
506 | } |
@@ 662-667 (lines=6) @@ | ||
659 | $decimals = $length; |
|
660 | } |
|
661 | ||
662 | if ( 'i18n' == pods_v( self::$type . '_format', $options ) ) { |
|
663 | $value = number_format_i18n( (float) $value, $decimals ); |
|
664 | } |
|
665 | else { |
|
666 | $value = number_format( (float) $value, $decimals, $dot, $thousands ); |
|
667 | } |
|
668 | ||
669 | // Additional output handling for decimals |
|
670 | $decimal_handling = pods_v( self::$type . '_decimal_handling', $options, 'none' ) ; |