Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

convert octal number to decimal number

Mon Oct 27, 2008 1:18 pm

Code:
<?php
$orig_dec
= 34672;
$dec2oct = decoct($orig_dec);
$oct2dec = octdec($dec2oct);
echo
"original decimal number: $orig_dec <br>";
echo
"new octal number: $dec2oct <br>";
echo
"back to decimal: $oct2dec <br>";
?>




Post a reply
  Related Posts  to : convert octal number to decimal number
 convert decimal number to octal number     -  
 convert integer number to octal,hexadecimal number systems     -  
 convert binary number to decimal     -  
 Scale double number using big decimal     -  
 convert to binary number     -  
 convert char*(number) to required unsigned char*     -  
 convert hexadecimal to decimal     -  
 Number with dot in php     -  
 Cube number     -  
 Number Conversion     -  

Topic Tags

PHP Variables