Object Pascal <-> Visual Basic .NET | Explicit conversion to 32-bit real number
Object Pascal  Used keywords: single 
single
Description
 single (expr)Input
- expr - Any
Output
- return - 32-bit real number
Examples
Object Pascal
Explicit conversion to 32-bit real number the possible of use:x:= 3.14159265359;  // x = 3.14159274
y:= 123456789;      // y = 123456792.0
y :=single((x * y));       // z = 387850976.0.
Visual Basic .NET  Used keywords: csng 
CSng
Description
 CSng (expr)Input
- expr - Any
Output
- return - 32-bit real number
Examples
Visual Basic .NET
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.0You can find it in the following collections: explicit type conversions
Explicit conversion to 32-bit real number in another programming language:
Differences to: