Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 2
Leaky Nun
  • 50.6k
  • 6
  • 115
  • 291

Python 3, 90 bytes

lambda s:g(int(s.replace(".","")),10**s[::-1].index("."))
g=lambda a,b:a-1and g(b%a,a)or b

Try it online!

Format: must have a decimal point in the string.

Leaky Nun
  • 50.6k
  • 6
  • 115
  • 291

AltStyle によって変換されたページ (->オリジナル) /