C# <-> Basic | 32-bit real number

C#

float

Description

 float
Used keywords: float

Examples

C#

32-bit real number the possible of use:
float x = 3.14159265359;  // x = 3.14159274
float y = 123456789;      // y = 123456792.0
y =(float)(x * y);       // z = 387850976.0
.
Basic

single

Description

 single
Used keywords: single

Examples

Basic

32-bit real number the possible of use:
Dim x As single= 3.14159265359  ' x = 3.14159274
Dim y As single= 123456789      ' y = 123456792.0
y =CSng((x * y))       ' z = 387850976.0

You can find it in the following collections: real numbers | numbers | data types
Languages: en hu cz sk