PHP - explicit conversion to 64-bit real number

the required type conversion can be carried out as follows:

explicit conversion to 64-bit real number

Description

( type ) expression

Input


Output

Examples

PHP

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

PHP

Other pieces of example codes:
(double)$y / 5
(double)$x / 5
(double)$i / 0xab
(double)$x / 0xa
(double)$x / 0xa
(double)$x / 0xa

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