R retkehing Well-known member Joined Feb 5, 2006 Messages 153 Programming Experience Beginner Feb 6, 2007 #1 How to check the a double value whether it is positive or negative? Thank you.
K karthiklsimha Member Joined Dec 26, 2006 Messages 19 Programming Experience 1-3 Feb 6, 2007 #2 Dim objD As Double = -1.123 If objD >= 0 Then MessageBox.Show("Positive") Else MessageBox.Show("Negative") End If Upvote 0 Downvote
Dim objD As Double = -1.123 If objD >= 0 Then MessageBox.Show("Positive") Else MessageBox.Show("Negative") End If