Dodgy maths question (in Visual Basic)

Status
Not open for further replies.
you have to be careful, not all of your values are appropriate.

For instance, the integer 0384 makes no sense (03:84 am?).

that said... You might want to consider going to an entirely minutes based mapping [0,1439].

To do that, the mapping would be: y(my system)=(x+5) * 143.9

that is, translate your map from [-5,5] to [0,10] and then expand it to [0,1439].

from there, you could go back to your formula by: y(your system) = ((y(my system) / 60) * 100) + (y(my system) % 60), using integer division and mod.
 
Status
Not open for further replies.