@@ -39,7 +39,7 @@ const volCube = (length) => {
3939const volCone = ( radius , height ) => {
4040 isNumber ( radius , 'Radius' )
4141 isNumber ( height , 'Height' )
42- return ( Math . PI * radius ** 2 * height / 3 )
42+ return ( Math . PI * radius ** 2 * height / 3.0 )
4343}
4444
4545/*
@@ -50,7 +50,7 @@ const volPyramid = (baseLength, baseWidth, height) => {
5050 isNumber ( baseLength , 'BaseLength' )
5151 isNumber ( baseWidth , 'BaseWidth' )
5252 isNumber ( height , 'Height' )
53- return ( baseLength * baseWidth * height ) / 3
53+ return ( baseLength * baseWidth * height ) / 3.0
5454}
5555
5656/*
@@ -91,7 +91,7 @@ const volPentagonalPrism = (pentagonalLength, pentagonalBaseLength, height) => {
9191*/
9292const volSphere = ( radius ) => {
9393 isNumber ( radius , 'Radius' )
94- return ( 4 / 3 * PI * radius ** 3 )
94+ return ( 4 / 3 * Math . PI * radius ** 3 )
9595}
9696
9797/*
@@ -100,7 +100,7 @@ const volSphere = (radius) => {
100100*/
101101const volHemisphere = ( radius ) => {
102102 isNumber ( radius , 'Radius' )
103- return ( 2 * PI * radius ** 3 ) / 3
103+ return ( 2.0 * Math . PI * radius ** 3 ) / 3.0
104104}
105105
106106const isNumber = ( number , noName = 'number' ) => {
0 commit comments