We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf1600 commit bcb01d5Copy full SHA for bcb01d5
src/read/index.ts
@@ -127,7 +127,8 @@ export function readVnNumber(number: string | number | bigint): string {
127
const group = groups[i]
128
const positionFromRight = groupCount - 1 - i
129
const isFirst = i === 0
130
- const isBeforeBillion = i + 1 < groupCount && (groupCount - 1 - (i + 1)) % 3 === 0
+ const isBeforeBillion =
131
+ i + 1 < groupCount && (groupCount - 1 - (i + 1)) % 3 === 0
132
133
// Determine unit position (cycles every 3 positions after tỷ)
134
let unitIndex = positionFromRight % 3
0 commit comments