float Data Type

The float type is stored as a four-byte, single-precision, floating-point number. It represents a single-precision 32-bit IEEE 754 value.

The float type can represent numbers as large as 3.4E+38 (positive or negative) with an accuracy of about seven digits, and as small as 1E-44. The float type can also represent NaN (Not a Number), positive and negative infinity, and positive and negative zero.

This type is useful for applications that need large numbers but do not need precise accuracy. If you require very accurate numbers, consider using the Decimal data type.

The corresponding .NET Framework data type is Single. The properties and methods of the float data type are the same as the Single properties and methods.

Properties and Methods



Version .NET

See Also


decimal Data Type (Visual Studio - JScript)


Data Type Summary

Other Resources

Data Types (Visual Studio - JScript)