C# 2008 Floating Point Variable Types

C# distinguishes real numbers, which come in two styles: floating point and decimal. Floating point is the most common and floating-point variables are assigned. This chart describes the two floating-point variables in C#:






















Type Size (bytes) Range Accuracy In Use
float81.5 * 10-45 to 3.4 * 10386-7 digitsfloat f = 1.2F;
double165.0 * 10-324 to 1.7*1030815-16 digitsdouble d = 1.2;







dummies

Source:http://www.dummies.com/how-to/content/c-2008-floating-point-variable-types.html

No comments:

Post a Comment