Skip to content

Commit 2f6e2fe

Browse files
committed
[CVW-046] Fix, 표현 변경시 반올림이 아닌 버림으로 수정
1 parent ec008bb commit 2f6e2fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Projects/Utils/CoreUtil/Sources/DataStructure/CVNumber.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public extension CVNumber {
109109

110110
for precision in (0...4).reversed() {
111111
let formatter = NumberFormatter()
112+
formatter.roundingMode = .down
112113
formatter.maximumFractionDigits = precision
113114
let minFraction = unit.isEmpty ? 4 : 3
114115
if minFraction > precision {

0 commit comments

Comments
 (0)