3 Replies Latest reply: Oct 10, 2012 7:44 AM by 813465 RSS

    NaN issue

    user7498756
      Hi,
      i am trying to do calculation with this formula

      <?xdoxslt:abs(xdoxslt:get_variable($_XDOCTX,'var1Total') - xdoxslt:get_variable($_XDOCTX,'var2Total'))?>

      we have to show only absolute value for that i have used abs, now my issue is any of the variable have no value then it displays NaN.

      Any idea??

      for me i m getting var1Total is 575.95 where as var2Total is null. I want to display the first var1Total value 575.95 at the same if i dont have value of both total then it has to display 0.00.


      Thanks,
      Jag