Real32 Data Type
Holds signed 32-bit (4-byte) IEEE floating-point values in the range −3.4028235E+38 to −1.401298E−45 for negative values and 1.401298E−45 to 3.4028235E+38 for positive values.
- Be aware that floating-point data types are incapable of representing many values exactly. Operations such as comparisons can produce unexpected results. See Troubleshooting Data Types for more information.
- Space efficiency
- You can use Real32 in situations where the greater precision of Real64 is unnecessary. In some cases, the ViviFire runtime may be able to pack your data more efficiently and reduce memory consumption.
- Default value
- When you declare a variable of type Real32 and leave it uninitialized,, its value defaults to zero (0.0).
- Real32 widens to Real64, Real, or Real128 without any risk of overflow.
- Trailing zeros
- The floating-point data types have no internal means of representing trailing 0 characters following the decimal point. This means that numbers such as 1.4200 and 1.42 represent the same value. If you must display trailing zeros, the number will need to be formatted.
- Type characters
- Real32 has no type characters.
Shared methods and properties
Real32.Bits As UInt
- Returns the number of available bits. This is always 32.
Real32.Epsilon As Real32
- Returns the smallest difference between two values.
Real32.IsNaN(x As Real32) As Boolean
- Returns true if the value of x is not a number. Division by zero can cause this result.
Real32.Max As Real32
- Returns the maximum positive value.
Real32.Min As Real32
- Returns the minimum positive value.
Dim foo As Real32