C program to convert Octal to decimal number

This page has a C program to convert Octal to decimal number. We can easily write the C program to convert a given mixed Octal number into decimal number equivalent. To convert the Octal number, we should multiply the each digits present in the Octal number with their weights and add them (products) together to form the decimal equivalent. For Example: Let us find the decimal equivalent of Octal number (746.124)8 using the below given converter program. The Given Octal number: (746.124). The Decimal equivalent is calculated as: 7*8*8 + 4*8 + 6*1 + 1*1/8 + 2*1/(8*8) + 4*1/(8*8*8) = 43.71875 Decimal equivalent of (746.124) is (486.1640625) The below given C program is used to convert a given mixed Octal number into its equivalent decimal number. Kindly check out the program to convert a Octal to decimal number.