SyntaxDim result As Single = CSng(expression)
DescriptionThe CSng function converts expression to the Single data type. Usage at a Glance
ExampleDim targetNumber As Single If IsNumeric(stringNumber) Then targetNumber = CSng(stringNumber) End If See AlsoCDbl Function |