| @@ 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 ) { |
|
| @@ 312-317 (lines=6) @@ | ||
| 309 | $dot = $format_args['dot']; |
|
| 310 | $decimals = $format_args['decimals']; |
|
| 311 | ||
| 312 | if ( 'i18n' == pods_v( static::$type . '_format', $options ) ) { |
|
| 313 | $value = number_format_i18n( (float) $value, $decimals ); |
|
| 314 | } else { |
|
| 315 | $value = number_format( (float) $value, $decimals, $dot, $thousands ); |
|
| 316 | } |
|
| 317 | ||
| 318 | // Optionally remove trailing decimal zero's. |
|
| 319 | if ( pods_v( static::$type . '_format_soft', $options, 0 ) ) { |
|
| 320 | $parts = explode( $dot, $value ); |
|