I'm coding a program to add and subtract time from a user given time. The problem I've run into is that I have the hours and minutes in int form. I need to display the minutes as 00.. 09. If I enter them as 00 they still come out as 0. How do you format you integer output to have two significant figures?
Hi. This sounds interesting but you haven't provided much information. Maybe you should include some of the code and point out exactly what you're trying to do. I think maybe you want the hours to be integers and the minutes to include a decimal. That's why I'm interested. Not to say it's not worth responding just to try to help. So try to add more info, please.
I did it for a school assignment recently. I don't know much, but I'm pretty confident saying that you shouldn't make things more complicated then they need to be. That's all.