public
/
olly_site.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2cc3eb
)
Change parseInt to parseFloat to fix bug with decimal input
author
Nick Downing
<nick@ndcode.org>
Sun, 25 Nov 2018 02:27:36 +0000
(13:27 +1100)
committer
Nick Downing
<nick@ndcode.org>
Sun, 25 Nov 2018 02:27:36 +0000
(13:27 +1100)
calculatebutton.html.jst
patch
|
blob
|
history
diff --git
a/calculatebutton.html.jst
b/calculatebutton.html.jst
index
662ebae
..
e47ad2c
100644
(file)
--- a/
calculatebutton.html.jst
+++ b/
calculatebutton.html.jst
@@
-16,7
+16,7
@@
return async env => {
let radius_and_units = query.radius.split(' ')
-let radius = parse
In
t(radius_and_units[0])
+let radius = parse
Floa
t(radius_and_units[0])
let units = radius_and_units[1] || 'units'
let area = Math.PI * radius * radius
let circumference = Math.PI * radius * 2