Programming Reference Manual
CSng
Syntax
CSng(Num|$)
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.
See Also
Example
Sub
Main
Debug
.
Print
CSng
(
Sqr
(2))
' 1.4142135381699
End
Sub
Home
IDE Overview
Declarations
Data Types
Assignment
Flow Control
Error Handling
Conversion
Conversion
Array
CBool
CByte
CCur
CDate
CDbl
CDec
CHuge_
CInt
CLng
CSng
CStr
CVar
CVCur
CVDate
CVErr
Hex
Oct
Str
Val
Variable Info
Constant
Math
Financial
Strings
StringClass
Objects
Time/Date
File
User Input
User Dialog
Dialog Functions
Web Form
CCL (web server)
DDE
Settings
Miscellaneous
Operator
Translator