Answers for "c# float double"

C#
9

C# Cast double to float

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

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

c# decimal vs double

Use decimal for manmade concepts like currency
Use double/float for naturally-occuring values like temperature
Posted by: Guest on September-08-2021

C# Answers by Framework

Browse Popular Code Answers by Language