Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
how to convert float to int c#
Chris Johns
Programming language:
C#
2021-04-01 07:21:33
0
Q:
how to convert float to int c#
pyrAmider
Code:
C#
2021-01-15 22:23:43
Convert.ToInt32(float)
7
David M
Code:
C#
2021-03-12 15:29:09
float someFloat = 42.7f; int someInt = (int)someFloat; // 42
3
Tags
int
con
how
Related
C# convert string to int
how to make public float on c#
convert uint to int C#
float to int c#
c# integer part of float
how can convert string to int csharp
how to convert string to int in c#
c# string to float
convert string to int c#
c# convert to int
c# how to convert string to int
convert to int c#
c# how to take from a float
unity cast float to int
c# long to int
c# convert long to int
New to Communities?
Join the community