I’m new to both and I figured I’d try this out. Why is this returning 0?
$_10kpt = (($_10kp * ($_10k *($gspot / 20))));
echo $_10kpt;
_10kpt is undefined, first instance. $_10kp is a decimal(7,3), $gspot is an integer and 20 is obviously an integer. How would I go about returning some sort of value on this?
$_10kp = .417
$_10k = 1.0
$gspot = 1600
So it should return 33.36 right?
This returns exactly 33.36 at my test…