Object Pascal <-> C++ | 32-bit real number
Object Pascal Used keywords: single
single
Description
single
Examples
Object Pascal
32-bit real number the possible of use:x:= 3.14159265359; // x = 3.14159274
y:= 123456789; // y = 123456792.0
y :=single((x * y)); // z = 387850976.0
.
C++ Used keywords: float
float
Description
float
Note: In C like languages the data type size may be different depending on compiler and architecture, we show only one standard look.
Examples
C++
32-bit real number the possible of use:float x = 3.14159265359; // x = 3.14159274
float y = 123456789; // y = 123456792.0
y =(float)(x * y); // z = 387850976.0
You can find it in the following collections: real numbers | numbers | data types
32-bit real number in another programming language:
Differences to: