PHP 클래스 Neos\FluidAdaptor\ViewHelpers\Format\NumberViewHelper

또한 보기: http://www.php.net/manual/en/function.number-format.php = Examples = 423423.234 423,423.20 423423.234 423.423,2 {someNumber -> f:format.number(forceLocale: true)} 54.321,00 (depending on the value of {someNumber} and the current locale) {someNumber -> f:format.currency(forceLocale: 'de_DE')} 54.321,00 (depending on the value of {someNumber})
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractLocaleAwareViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$numberFormatter Neos\Flow\I18n\Formatter\NumberFormatter

공개 메소드들

메소드 설명
render ( integer $decimals = 2, string $decimalSeparator = '.', string $thousandsSeparator = ',', string $localeFormatLength = NumbersReader::FORMAT_LENGTH_DEFAULT ) : string Format the numeric value as a number with grouped thousands, decimal point and precision.

메소드 상세

render() 공개 메소드

Format the numeric value as a number with grouped thousands, decimal point and precision.
public render ( integer $decimals = 2, string $decimalSeparator = '.', string $thousandsSeparator = ',', string $localeFormatLength = NumbersReader::FORMAT_LENGTH_DEFAULT ) : string
$decimals integer The number of digits after the decimal point
$decimalSeparator string The decimal point character
$thousandsSeparator string The character for grouping the thousand digits
$localeFormatLength string Format length if locale set in $forceLocale. Must be one of Neos\Flow\I18n\Cldr\Reader\NumbersReader::FORMAT_LENGTH_*'s constants.
리턴 string The formatted number

프로퍼티 상세

$numberFormatter 보호되어 있는 프로퍼티

protected NumberFormatter,Neos\Flow\I18n\Formatter $numberFormatter
리턴 Neos\Flow\I18n\Formatter\NumberFormatter