Quote:
Originally Posted by BirdOPrey5
OK I posted this, then deleted it, now reposting after I read the topic a little closer, seems it was never resolved.
To get rid of the divide by zero errors on the current vbtrade application:
open vbtrade.php
on line 112 find
PHP Code:
$gainper = number_format((($gain/$mktval)*100),3);
and replace with:
PHP Code:
if ($mktval != 0)
$gainper = number_format((($gain/$mktval)*100),3);
else
$gainper = 0;
Everything else seems to work, make a backup of the original file just in case.
|
Wow! I just want to thank you, I recently came back to check this out, and I guess I missed this. It works! Thanks so much!