summaryrefslogtreecommitdiff
path: root/web/src/math/index.ts
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-11-06 22:31:12 +0200
committerJosh Kingsley <josh@joshkingsley.me>2025-11-06 22:31:12 +0200
commit6ea86b1b56aebbae7edeb37b01d7bf5cd145bf60 (patch)
treebfd0178097a56087471543950caebed5f8280040 /web/src/math/index.ts
parentdad5b47f0bb480532043df8d488f5609f731b00d (diff)
feat(web): change subvisions
Diffstat (limited to 'web/src/math/index.ts')
-rw-r--r--web/src/math/index.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/src/math/index.ts b/web/src/math/index.ts
new file mode 100644
index 0000000..70dbb67
--- /dev/null
+++ b/web/src/math/index.ts
@@ -0,0 +1,3 @@
+export function gcd(a: number, b: number): number {
+ return b === 0 ? Math.abs(a) : gcd(b, a % b);
+}