Floats und Doubles
Floating Point Zahlen sind Zahlen mit einem Dezimalpunkt. In C# ist ein float
4 Byte gross und ein double
8 Bytes.
float rating = 3.5f;
double pi = 3.14159265358979;
Arithmetische Operationen
float sum = 5.5f + 10.5f;
float difference = 5.5f - 10.5f;
float product = 5.5f * 10.5f;
Zuletzt aktualisiert
War das hilfreich?