<?php
int|float octdec ( string $octal_string )
where,
$octal_string = The octal string value
to be converted to decimal
?>
MAXIMUM OCTAL VALUE | MAXIMUN DECIMAL VALUE | bit |
37777777777 | 4294967295 | 32 |
777777777777777777777 | 9223372036854775807 | 64 |
ed48 |
<?php
$stroc01_32m = '1777777777740000000002';
$stroc01_32M = '37777777777';
$stroc01_64m = '1000000000000000000002';
$stroc01_64M = '777777777777777777777';
$stroc01_X = 777777777777777777777;
$stroc01_l = '998999998';
$stroc01_L = '2732';
$octdec_32m = octdec($stroc01_32m);
$octdec_32M = octdec($stroc01_32M);
$octdec_64m = octdec($stroc01_64m);
$octdec_64M = octdec($stroc01_64M);
$octdec_X = octdec($stroc01_X);
$octdec_l = octdec($stroc01_l);
$octdec_L = octdec($stroc01_L);
echo 'octdec( ' . $stroc01_32m . ' ) = <br>' .
$octdec_32m . '<br><br>';
echo 'octdec( ' . $stroc01_32M . ' ) = <br>' .
$octdec_32M . '<br><br>';
echo 'octdec( ' . $stroc01_64m . ' ) = <br>' .
$octdec_64m . '<br><br><br>';
echo 'octdec( ' . $stroc01_64M . ' ) = <br>' .
$octdec_64M . '<br><br>';
echo 'octdec( ' . $stroc01_X . ' ) = <br>' .
$octdec_X . '<br><br><br>';
echo 'octdec( ' . $stroc01_l . ' ) = <br>' .
$octdec_l . '<br><br>';
echo 'octdec( ' . $stroc01_L . ' ) = <br>' .
$octdec_L . '<br><br>';
?>