C# Cast double to float
double double_Num = 42.0349384093;
float float_Num = (float)dNum;
By Barry Cox
C# Cast double to float
double double_Num = 42.0349384093;
float float_Num = (float)dNum;
By Barry Cox
how to convert float to int c#
float someFloat = 42.7f;
int someInt = (int)someFloat; // 42
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us