C Programming Code Examples C > Conversions Code Examples Convert string to double-precision floating-point value: how to use strtod Convert string to double-precision floating-point value Convert string to long: atol Convert string to unsigned long integer: how to use strtoul Convert temperatures in C Programming Convert time_t value to string: how to use ctime Convert time_t value to tm structure as UTC time: how to use gmtime Convert time_t value to tm structure in local time: How to use localtime converts earth days into Jovian years Program to convert binary number to decimal Program to Convert Binary to Octal Program to Convert Decimal to Octal Program to convert decimal number to binary Program to Convert Octal to Binary Program to Convert Octal to Decimal program takes the decimal number as input and converts it into an octal number Program to Convert Binary Number to Decimal Number Program to Convert Decimal Number into Binary Number This program produces a Celsius to Fahrenheit conversion chart for the numbers 0 to 100 Page 1 Page 2