Jump to content

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


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...