diff options
| author | Horus | 2020-10-16 06:01:59 +0200 |
|---|---|---|
| committer | Horus | 2020-10-16 06:01:59 +0200 |
| commit | 2f4f077594e45c8b524f7249dc61c7a0fdfbd81c (patch) | |
| tree | 31e535d388a3a714b0087f6902c87f5b52d8b615 | |
| parent | e54e61c1c1a6db96c05cbfcc082f045a9ae3555d (diff) | |
| download | pizza-2f4f077594e45c8b524f7249dc61c7a0fdfbd81c.tar.gz | |
bugfix
| -rw-r--r-- | index.html | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -227,8 +227,8 @@ r = document.getElementById('r' + id).value.replace(",", "."); f = ( Math.PI * Math.pow((d/2),2) ); - fr = ( Math.PI * Math.pow((d-r)/2,2) ); - frpp = (( Math.PI * Math.pow((d)/2,2) ) - ( Math.PI * Math.pow((d-r)/2,2) )); + fr = ( Math.PI * Math.pow((d/2)-r,2) ); + frpp = (( Math.PI * Math.pow((d)/2,2) ) - ( Math.PI * Math.pow((d/2)-r,2) )); v = fr / frpp; fp = f / p; frp = fr / p; |
