MrVariable
Programmer
OK, I am writing a program that when you enter a number (23456.75) will then convert it to the appropriate text E.G:
Twenty Three Thousand Four Hundred and Fifty Six Pounds And Seventy Five Pence
I have got it working except with 11111.11 cos this returns:
Eleven thousand Ten One Pounds And Ten One Pence
Obviously a Major cock-up, The code i am using is massive cosisting of lots of case statements, printf, and if statements, any idesas on a much easier way that wil work?
Twenty Three Thousand Four Hundred and Fifty Six Pounds And Seventy Five Pence
I have got it working except with 11111.11 cos this returns:
Eleven thousand Ten One Pounds And Ten One Pence
Obviously a Major cock-up, The code i am using is massive cosisting of lots of case statements, printf, and if statements, any idesas on a much easier way that wil work?