c# how to convert double to int

SubZero answered on March 4, 2023 Popularity 9/10 Helpfulness 5/10

Contents


More Related Answers


c# how to convert double to int

2
Tip SubZero 1 GREPCC

use the Convert.ToInt32() method or the type cast (int) operator. 

Note that when converting from a double to an int, the decimal portion of the number is truncated. 

Popularity 9/10 Helpfulness 5/10 Language csharp
Source: Grepper
Tags: c# double int
Link to this answer
Share Copy Link
Contributed on Mar 04 2023
SubZero
0 Answers  Avg Quality 2/10


X

Sign in with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.