| @@ 412-417 (lines=6) @@ | ||
| 409 | $dot = $format_args['dot']; |
|
| 410 | $decimals = $format_args['decimals']; |
|
| 411 | ||
| 412 | if ( 'i18n' == pods_v( static::$type . '_format', $options ) ) { |
|
| 413 | $value = number_format_i18n( (float) $value, $decimals ); |
|
| 414 | } |
|
| 415 | else { |
|
| 416 | $value = number_format( (float) $value, $decimals, $dot, $thousands ); |
|
| 417 | } |
|
| 418 | ||
| 419 | // Additional output handling for decimals |
|
| 420 | $decimal_handling = pods_v( static::$type . '_decimal_handling', $options, 'none' ) ; |
|
| @@ 412-417 (lines=6) @@ | ||
| 409 | $dot = $format_args['dot']; |
|
| 410 | $decimals = $format_args['decimals']; |
|
| 411 | ||
| 412 | if ( 'i18n' == pods_v( static::$type . '_format', $options ) ) { |
|
| 413 | $value = number_format_i18n( (float) $value, $decimals ); |
|
| 414 | } |
|
| 415 | else { |
|
| 416 | $value = number_format( (float) $value, $decimals, $dot, $thousands ); |
|
| 417 | } |
|
| 418 | ||
| 419 | // Optionally remove trailing decimal zero's. |
|
| 420 | if ( pods_v( static::$type . '_format_soft', $options, 0 ) ) { |
|