Friday, April 19, 2024 22:43

Posts Tagged ‘float variable’

Real types error calculations

Thursday, December 29th, 2016

In calculations with real floating-point data types it is possible to observe strange behavior, because during the representation of a given real number it often happens to lose accuracy. The reason for this is the inability of some real numbers to be represented exactly as a sum of negative powers of the number 2.… Read more

Float variable type

Tuesday, December 27th, 2016

C# language uses float variable type to store real number values in floating point (negative and positive numbers that contain a fractional part). The C# compiler will allocate 32 bits (4 bytes) to store values of type float. A float variable type can store values with a precision of six or seven decimals in the interval of 3.4E-38 and 3.4E+38.… Read more


Follow the white rabbit