This commit is contained in:
Frank 2026-03-26 18:54:16 -04:00
parent 6639f92739
commit f7c2ef876f
2 changed files with 43 additions and 0 deletions

View file

@ -1,3 +1,7 @@
export function centsToMicroCents(amount: number) {
return Math.round(amount * 1000000)
}
export function microCentsToCents(amount: number) {
return Math.round(amount / 1000000)
}