Well, using the code you quoted you get an exception, of course.
If you have numbers that aren't within the range of int, you'll have to
use some other method obviously. For example, the Math.Truncate() method
can be used in place of casting to int.
Else the results will become very "weird looking".
If you have numbers that aren't within the range of int, you'll have to
use some other method obviously. For example, the Math.Truncate()
method can be used in place of casting to int.
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.