C# Cast double to float
double double_Num = 42.0349384093;
float float_Num = (float)double_Num;
By Barry Cox
C# Cast double to float
double double_Num = 42.0349384093;
float float_Num = (float)double_Num;
By Barry Cox
c# decimal vs double
Use decimal for manmade concepts like currency
Use double/float for naturally-occuring values like temperature
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