detect if number is positive or negative C# code example
Example 1: if number negative c sharp
bool positive = number > 0;
bool negative = number < 0;
Example 2: c# return true if positive, return false if negative
bool positive = number > 0;
bool negative = number < 0;