Answers for "how to set a float to an int in c#"

C#
3

how to convert int to float in c#

int val1 = 1;
float val2 = (float)val1;
Posted by: Guest on September-14-2021

Code answers related to "how to set a float to an int in c#"

C# Answers by Framework

Browse Popular Code Answers by Language