Home Privacy Policy Feedback Link to us Site Map

Access: CSng Function


Question:  How do I convert a value to a single-precision number?


Answer:  To convert a value to a single, use the "CSng" function. The syntax for the CSng function is:

CSng( expression )

For example:

Dim LValue As Single

LValue = CSng(8.53453543)

In this example, the LValue variable would now contain the value 8.534535.