CSng Function
Syntax
CSng(expr)
Group
Description
Converts to a Single precision real. If expr is too big (or too small) to fit, an overflow error occurs.
Parameters
| Parameters | Description |
|---|---|
| expr | Converts a number or string value to a single precision real. |
Sub Main Debug.Print CSng(Sqr(2)) ' 1.4142135381699 End Sub