Omzetfunctie toevoegen

This commit is contained in:
betbetter committed 2026-11-13 22:41:53 +00:00
1 parent cd78e85af3
commit ff1a634dd2
1 file changed
+3
+3
View File
@@ -0,0 +1,3 @@
# Odds omzetten tussen notaties
def decimaal_naar_amerikaans(d):
return round((d - 1) * 100) if d >= 2 else round(-100 / (d - 1))