Single or Float Data Type

Purpose

Single precision floating-point data type.

Example

Dim name As Single
Dim name As Float
Dim name!

Description

Type declaration character is !.

A Single occupies 32 bit = 4 bytes with at least 7 digits of precision.

Minimum: _minSng (-3.402823e+038!)

Maximum: _maxSng (3.402823e+038!)

Epsilon: _epsSng = 1.192093e-007!)

Decades Epsilon: _epsSng10 (1.0e-006!)

Smallest value: _smallSng = 2.350989e-038!)

Smallest value: _tinySng (1.401298e-045!)

Example

Dim d As Single = 2.10

Local Single d1, d2!

Const DD = 1!

Const DD_1 = _epsSng

See Also

Boolean, Byte, Card, Short, Word, Int16, Long, Int, Integer, Int32, Int64, Large, Single, Double, Currency, Date, Handle, String, Variant, Object

{Created by Sjouke Hamstra; Last updated: 23/09/2021 by James Gaite}