explicit conversion to 64-bit real number: CDbl, double

the required type conversion can be carried out as follows:

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.
compatible programing languages:
C | C++ | Visual C++ .NET | C# | Java | PHP

Examples

Example

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

CDbl

Description

 CDbl (expr)
Used keywords: cdbl

Input


Output

compatible programing languages:
Basic | FreeBASIC | Visual Basic .NET

Examples

Basic

explicit conversion to 64-bit real number the possible of use:
Dim x As double= 3.14159265359     ' x = 3.14159265359
Dim y As double= 123456789         ' y = 123456789.0
y =CDbl((x * y))          ' y = 387850941.35821074

double

Description

 double (expr)
Used keywords: double

Input


Output

compatible programing languages:
Pascal | Object Pascal | Free Pascal

Examples

Object 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

you can find it in the following collections: explicit type conversions
explicit conversion to 64-bit real number in another programming language:
Languages: en hu cz sk