IBM Lotus Symphony


CSng Function[Runtime]

Converts any string or numeric expression to data type Single.

Syntax:

CSng (Expression)

Return value:

Single

Parameters:

Expression: Any string or numeric expression that you want to convert. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.

Error Codes

5 Invalid procedure call

Example:

Sub ExampleCSNG

Msgbox CDbl(1234.5678)

Msgbox CInt(1234.5678)

Msgbox CLng(1234.5678)

Msgbox CSng(1234.5678)

end sub


Product Feedback | Additional Documentation | Trademarks