Jump to content

Console.WriteLine(Convert.ToInt32(myDouble));


LilithFae
 Share

Recommended Posts

I'm not sure which language you're programming in. The 32 clarifies that the returned integer uses 32 bits to represent the number. 32 bits can represent about 4 billion different numbers. Depending on the language, there can be 8-bit integers for up to 256 different values, 16-bit integers for up to 65536 values and 64-bit integers for an amount too big for me to remember.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...