Single
 
Standard data type: 32 bit floating point

Syntax

Dim variable As Single

Description

Single is a 32-bit, floating point data type used to store decimal numbers. They can hold values in a range of 1.1 E-38 to 3.43 E+38. Its precision is of 6 decimal digits.

They are similar to Double data types, but less precise.

Example

'Example of using a single variable.

Dim a As Single
a = 1.9857665
Print a

Sleep


Differences from QB

  • None

See also

  • Double More precise float type
  • CSng
  • TblVarTypes Table with variable types overview, limits and suffixes