CSng Function
Syntax
CSng(Num|$)
Group
Conversion
Description
Convert to a single precision real.
If Num|$
is too big (or too small) to fit then an overflow error occurs.
Parameter |
Description |
Num|$ |
Convert a number or string value to a single precision real. |
Example
Sub Main
Debug.Print CSng(Sqr(2))
' 1.4142135381699
End Sub