Quantcast
Channel: number negative?
Browsing all 3 articles
Browse latest View live

number negative?

I beleive something like this can work:if ( d < 0.0 ){    // d is negative}

View Article



number negative?

You can always try comparing it to zerodouble d = 3.14;if (d > 0.0) {   // ...}Or did I misunderstand your question?

View Article

number negative?

hi,I have a little question: how can I check if a double variable represents a negative or a positive number..? I looked in the MSDN if there exists a function for that but I didn't find...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images