summaryrefslogtreecommitdiffhomepage
path: root/cloud/core/src/util/price.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cloud/core/src/util/price.ts')
-rw-r--r--cloud/core/src/util/price.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloud/core/src/util/price.ts b/cloud/core/src/util/price.ts
new file mode 100644
index 000000000..abdbca032
--- /dev/null
+++ b/cloud/core/src/util/price.ts
@@ -0,0 +1,3 @@
+export function centsToMicroCents(amount: number) {
+ return Math.round(amount * 1000000)
+}