riciii7 commited on
Commit
e450495
·
verified ·
1 Parent(s): 745c768

jndfksnsdfksndfjknsdkfnsdk

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -66,7 +66,9 @@ def calculate_sphere_volume(width, height):
66
  diameter = (width + height) / 2
67
  radius = diameter / 2
68
  volume = (4/3) * math.pi * (radius ** 3)
69
- return round(volume, 2) * 0.002274162
 
 
70
  except Exception as e:
71
  print(f"Terjadi error: {e}")
72
  return None
 
66
  diameter = (width + height) / 2
67
  radius = diameter / 2
68
  volume = (4/3) * math.pi * (radius ** 3)
69
+ result = round(volume, 2) * 0.002274162
70
+ if (result < 500) result = 500
71
+ return result
72
  except Exception as e:
73
  print(f"Terjadi error: {e}")
74
  return None