Reverted non functional parsing code done in cff6304c254501deeb65c926f9b4fed822b242d5.
Added Method to check the inputs for NaN before starting the calculation.