Thread
:
Warning: Division by zero
View Single Post
#
4
(
permalink
)
03-24-06, 03:51 PM
Patiek
Wannabe Coder
Join Date: Nov 2003
Posts: 165
Thanks: 0
Thanked 0 Times in 0 Posts
You shouldn't be using isset alone. Instead, use other alternatives such as floatval:
PHP Code:
<?php
if(
floatval
(
$X2
) !=
0
)
{
echo ((
$Y2
*
703
) / (
$X2
*
$X2
));
}
Patiek
View Public Profile
Find all posts by Patiek