Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
if number negative c sharp
Rev1.0
Programming language:
C#
2021-04-03 04:17:10
1
Q:
if number negative c sharp
Neil B.
Code:
C#
2021-03-11 13:08:33
bool positive = number > 0; bool negative = number < 0;
1
Tags
number
Related
c# is number even
find negative version of integer in c#
c# see if string is int
c# short if notation
c# check if int is null
limiting the amount of decimal places c#
c# if int is even
check if multiple variables are null c#
c# 8 null coalescing assignment
c# math method to reverse negative or positive
c# null conditional operator if statement
null coalescing operator c#
double to int c#
c# null conditional
New to Communities?
Join the community