Pascal <-> C++ | Explicit conversion to 64-bit real number

Pascal

double

Description

 double (expr)
Used keywords: double

Input


Output

Examples

Pascal

Explicit conversion to 64-bit real number the possible of use:
x:= 3.14159265359;     { x = 3.14159265359}
y:= 123456789;         { y = 123456789.0}
y :=double((x * y));          { y = 387850941.35821074}
.
C++

explicit conversion to 64-bit real number

Description

( type ) expression

Input


Output

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++

Explicit conversion to 64-bit real number the possible of use:
double x = 3.14159265359;     // x = 3.14159265359
double y = 123456789;         // y = 123456789.0
y =(double)(x * y);          // y = 387850941.35821074

You can find it in the following collections: explicit type conversions
Languages: en hu cz sk