Packagekor.formatters
Classpublic class NumberFormatter

NumberFormatter는 숫자 포맷을 변경하여 보일 수 있도록 합니다.
예를 들어 천단위에 컴마 구분자를 추가하거나, 소숫점 2자리에서 반올림 하는 등의 처리를 할 수 있습니다.



Styles
 StyleDescriptionDefined by
  
decimalSeparatorTo
Type: String

소숫점을 나타내는 캐릭터를 정의합니다. 기본값은 Dot(.) 입니다.

The default value is ".".
NumberFormatter
  
id
Type: String

id를 설정합니다. id는 사용자에 의해 정의된 임의의 고유값입니다.

설정된 id를 통해 해당 객체에 접근이 가능합니다.
NumberFormatter
  
precision
Type: Number

소숫점을 몇 자리까지 표현할지 결정합니다. -1 인 경우 표현 가능한 소숫점을 모두 표현합니다.

The default value is -1.
NumberFormatter
  
rounding
Type: String

소숫점 round 방식을 결정합니다. 유효값은 "down", "nearest", "up", 그리고 "none" 입니다.

The default value is "none".
NumberFormatter
  
thousandsSeparatorTo
Type: String

천단위 구분 캐릭터를 정의합니다. 기본값은 컴마(,) 입니다.

The default value is ",".
NumberFormatter
  
useNegativeSign
Type: Boolean

음수에 마이너스 부호(-)를 붙일지 여부를 결정합니다.

The default value is true.
NumberFormatter
  
useThousandsSeparator
Type: Boolean

천단위 구분자(,)를 삽입할지 여부를 타나냅니다.

The default value is true.
NumberFormatter