Documentation for Windows 11, Version 22H2

FLOAT Data Type

Overview

The FLOAT data type represents a single-precision floating-point number. It is used to store values with decimal points, suitable for scientific calculations, graphics, and other applications requiring fractional precision.

This type is equivalent to the C++ float keyword and typically corresponds to the IEEE 754 single-precision binary floating-point format.

Definition

In the Windows API, the FLOAT data type is defined as follows:

Declaration Description
typedef float FLOAT;
A 32-bit single-precision floating-point number.

This definition highlights that FLOAT is simply an alias for the built-in float type, ensuring type compatibility across different C/C++ compilers and platforms supported by Windows.

Remarks

Requirements

There are no specific requirements beyond standard C++ or C language support for floating-point types. The FLOAT type is readily available in all Windows development environments.

Header
windef.h

See Also