Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,8 +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 |
-
result = round(volume, 2)
|
| 70 |
-
|
|
|
|
| 71 |
return result
|
| 72 |
except Exception as e:
|
| 73 |
print(f"Terjadi error: {e}")
|
|
|
|
| 66 |
diameter = (width + height) / 2
|
| 67 |
radius = diameter / 2
|
| 68 |
volume = (4/3) * math.pi * (radius ** 3)
|
| 69 |
+
result = round(volume, 2)
|
| 70 |
+
# result = result * 0.002274162
|
| 71 |
+
# if result < 500: result = 500
|
| 72 |
return result
|
| 73 |
except Exception as e:
|
| 74 |
print(f"Terjadi error: {e}")
|