f.numFormat()
f.numFormat(value)
개요
파라미터
파라미터명
필수여부
타입
제약사항
설명
기능 요소
요소명
설명
사용 예시
let num = f.numFormat(12.156)
// 올림(digits)
num.ceil(2); //output 12.16
// 버림(digits)
num.floor(2); //output 12.15
// 반올림(digits)
f.numFormat(12.156).round(2); //output 12.16
// 문자열 반환(digits, toFix, mode)
f.numFormat(12.156).format(2, false, "round"); //output "12.16"
Last updated
Was this helpful?