20140917: Updated to account for Inf and Infinity and plus or minus preceeding these values and NaNs