diff options
| author | Frank <[email protected]> | 2026-03-26 18:54:16 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-03-28 20:16:51 -0400 |
| commit | f7c2ef876f3ba261380ae37bac7ad5805b61d80b (patch) | |
| tree | ef450adc50e588c7ed73e49a7f74f9498e481490 /packages/console/core/src | |
| parent | 6639f9273967fd5a9929a8dc978c13652bcf2193 (diff) | |
| download | opencode-f7c2ef876f3ba261380ae37bac7ad5805b61d80b.tar.gz opencode-f7c2ef876f3ba261380ae37bac7ad5805b61d80b.zip | |
wip: zen
Diffstat (limited to 'packages/console/core/src')
| -rw-r--r-- | packages/console/core/src/util/price.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/console/core/src/util/price.ts b/packages/console/core/src/util/price.ts index abdbca032..ff7a576dd 100644 --- a/packages/console/core/src/util/price.ts +++ b/packages/console/core/src/util/price.ts @@ -1,3 +1,7 @@ export function centsToMicroCents(amount: number) { return Math.round(amount * 1000000) } + +export function microCentsToCents(amount: number) { + return Math.round(amount / 1000000) +} |
