Get the smalest number from an int

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

The smalest negativt number that an int can hold is -2147483648;

If I in some case want to use this number can I use a property from the int
struct or get the value from somewhere else or
must I just remember this value.

//Tony
 
Tony Johansson said:
The smalest negativt number that an int can hold is -2147483648;

If I in some case want to use this number can I use a property from the
int struct or get the value from somewhere else or
must I just remember this value.

You can use int.MinValue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top