Examples Of Ints And Floats in C#
int count = 5;
float temperature = 99.5F;
//Float constants are suffixed with "F".
//Otherwise, they are considered as doubles.
//Doubles hold floating point values but have
//greater range and precision than floats.
float temperature = 99.5F;
//Float constants are suffixed with "F".
//Otherwise, they are considered as doubles.
//Doubles hold floating point values but have
//greater range and precision than floats.

0 Comments:
Post a Comment
<< Home