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