I have a calculated variable in a .js file, let's call it "Total" and I'm trying to divide it, prior to making the calculation, the division appears to be working fine. But once I run the calculation and attempt to divide the result of the "Total" variable, I get a return of NaN.
I know that this is the standard 'Not a Number" return, which confuses me seeing how the "Total" variable is defnitely and number and should therefore be divisible.
Here's a cut of the code used:
"<td align=\"center\"><b>" + divide(mdRecTotalBtuh, 2) +" </b></td>" +
function divide($a, $b )