Skip to content

cleanFloatingPointError

cleanFloatingPointError(value): number

Defined in: core/util/float-precision.ts:11

부동소수점 연산 결과에서 아주 작은 오차를 정리합니다. 예: -0.09999999999999998 → -0.1

방식: 소수점 14자리(JavaScript의 안전 정밀도 범위)에서 반올림

number

number