I have been mucking about trying to build an algorithm from scratch for time calculations. I just realized that someone would have already done this, and this is the first place I thought of asking 
What I specifically need is an algorithm that allows me to work on time (hr:min:sec) as 3 seperate integer values. The values will have to be multiplied, divided etc... and their ratios also have to be found. The sticky part for me is how to specify when the lower value (minutes --> seconds) have to be incremented and by how much...
Side Q:
anyone know why g++ is giving me an error when I do (float_A % float_B)?
What I specifically need is an algorithm that allows me to work on time (hr:min:sec) as 3 seperate integer values. The values will have to be multiplied, divided etc... and their ratios also have to be found. The sticky part for me is how to specify when the lower value (minutes --> seconds) have to be incremented and by how much...
Side Q:
anyone know why g++ is giving me an error when I do (float_A % float_B)?