conversion of char to decimal
I have a problem and am struggling to be honest. I have a program that has a series of char values that are read from a file and stored in a database table. The program is using embedded sql.
I have an amount that is read from the file into char as 000000300000
This value represents 3000.00 in decimal or double or whatever value is best to use.
I want to use the value 3000.00. Is there a function that simply takes the char and moves it to the required format.
Can I simply use sprintf with a specific flag ?