Answers for "cast int as float c#"

C#
5

C# Cast double to float

double double_Num = 42.0349384093;
float float_Num = (float)dNum;

By Barry Cox
Posted by: Guest on March-18-2020
6

how to convert float to int c#

float someFloat = 42.7f;
int someInt = (int)someFloat;               // 42
Posted by: Guest on July-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language