FreeBASIC - explicit conversion to 32-bit real number: CSng

the required type conversion can be carried out as follows:

CSng

Description

 CSng (expr)
Used keywords: csng

Input


Output

Examples

FreeBASIC

explicit conversion to 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: explicit type conversions
Languages: en hu cz sk