Is there an IsNegative function of any sort? If no, what is the best way to determine a doubles positive or negative value?
I suppose I could always cast to a string and then read the leftmost character. If it's "-" then negative and if not, it's positive (assuming leading zeros trimmed). But I think there has to be a better way? Anyone?
I suppose I could always cast to a string and then read the leftmost character. If it's "-" then negative and if not, it's positive (assuming leading zeros trimmed). But I think there has to be a better way? Anyone?