comparing two floats to see if they're both negative, or both positive.
Posted
by dotty
on Stack Overflow
See other posts from Stack Overflow
or by dotty
Published on 2010-01-06T14:49:58Z
Indexed on
2010/06/14
16:02 UTC
Read the original article
Hit count: 131
Hay guys, i have 2 floats, which both comes from input boxes.
I need to compare these 2 floats, if one is negative and one is positive thrown an error. If they're both positive, or both negative, thats fine.
Any ideas?
Thanks
© Stack Overflow or respective owner