I have an app where the user enters valueA e.g 21.20 and also enters an interval value e.g 2.00. The interval value is added to valueA .e.g
if the user enters 21.20 as valueA and 2.00 as interval, then valueB will be 23.20 (i.e. 21.20+2.00).
I would like to make sure valueB doesn't contain a decimal greater than 60 e.g if a user enters valueA as 21.20 and interval as 0.42, valueB becomes 21.62. Instead of this, i want the value to be 22.02 (These values are time values converted to decimal, hence i can't have 21.62)
Please help, how can i ensure valueB moves to next value whenver the decimal is greater than .60?
I don't want to convert the values back to time ( from decimal) as this will make me rewrite the entire app. Kindly assist
if the user enters 21.20 as valueA and 2.00 as interval, then valueB will be 23.20 (i.e. 21.20+2.00).
I would like to make sure valueB doesn't contain a decimal greater than 60 e.g if a user enters valueA as 21.20 and interval as 0.42, valueB becomes 21.62. Instead of this, i want the value to be 22.02 (These values are time values converted to decimal, hence i can't have 21.62)
Please help, how can i ensure valueB moves to next value whenver the decimal is greater than .60?
I don't want to convert the values back to time ( from decimal) as this will make me rewrite the entire app. Kindly assist