469,286 Members | 2,522 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,286 developers. It's quick & easy.

How do I check if whether a double is NEGATIVE in java ?

63
How do I check if whether a double is NEGATIVE in java ?
Nov 28 '08 #1
3 15123
myusernotyours
188 100+
Hi,
Any negative number is less than zero.

Regards,

Alex.
Nov 28 '08 #2
JosAH
11,448 Expert 8TB
@MiziaQ
Keep it close to a positive double; if they go *poof!* and are both gone afterwards your double was negative; otherwise you have two positive doubles at best.

kind regards,

Jos ;-)
Nov 28 '08 #3
Nepomuk
3,112 Expert 2GB
Or ask it: "Is the glass half full or half empty" and if it answers "half empty", then it's certainly negative. ;-)

Greetings,
Nepomuk
Nov 28 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Siu | last post: by
12 posts views Thread by foolsmart2005 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.