NumberToLocalizedStringTransformer

NumberToLocalizedStringTransformer

class NumberToLocalizedStringTransformer implements DataTransformerInterface

Transforms between a number type and a localized number with grouping (each thousand) and comma separators.

Constants

ROUND_CEILING

Rounds a number towards positive infinity.

Rounds 1.4 to 2 and -1.4 to -1.

ROUND_FLOOR

Rounds a number towards negative infinity.

Rounds 1.4 to 1 and -1.4 to -2.

ROUND_UP

Rounds a number away from zero.

Rounds 1.4 to 2 and -1.4 to -2.

ROUND_DOWN 登录查看完整内容