Software Development Network>> Visual C++>> number negative?
You can always try comparing it to zerodouble d = 3.14;
if (d > 0.0) { // ...}
Or did I misunderstand your question
I beleive something like this can work:
if ( d < 0.0 ){ // d is negative}
number negative?
Greg Wojan
You can always try comparing it to zero
double d = 3.14;
if (d > 0.0) {
// ...
}
Or did I misunderstand your question
mike6271
I beleive something like this can work:
if ( d < 0.0 )
{
// d is negative
}