Floatingpoint constant
Signed decimal number, is made from whole and fractional part . in addition, we have the option to enter the floating point number with a decimal exponent.floatingpoint constant
Description
12.345
Output
- return - Real numbers
Compatible programing languages:
Basic | Visual Basic .NET | FreeBASIC | C | C++ | Visual C++ .NET | C# | Java | JavaScript | Object Pascal | Pascal | Free Pascal | PHP
Basic | Visual Basic .NET | FreeBASIC | C | C++ | Visual C++ .NET | C# | Java | JavaScript | Object Pascal | Pascal | Free Pascal | PHP
Examples
Example
Floatingpoint constant the possible of use:x = 1.234; // x = 1.234
y = x * 3.14; // y = 3.87476
if (y<5)
y = y/ 3.14; // y = 1.234
Example
Other pieces of example codes:(x-y)-30.5
100 * 1.2
x / 0.5
x > 3.14
1.14 > x
1.9
You can find it in the following collections: constants
Floatingpoint constant in another programming language: