# Help with solving this formula

#### john2k

I have the following formula

int_16(S1S2) * .0062

S1 is and S2 are 2 character hex values and the result is supposed to give me a MPH speed value. I have no idea where to start to solve this. Can someone help? So for example if S1=06 and S2=66

#### topsquark

Math Team
It would help if we knew what the origin of the expression is. What does int_16 mean?

-Dan

#### skipjack

Forum Staff
If S1S2 is 0666 and is treated as a hexadecimal (base 16) integer (as indicated by int_16), the corresponding decimal (base 10) value is 1638, which when multiplied by .0062 gives 10 (approximately). I state that on the assumption that ".0062" is in decimal. The use of .0062 as a conversion factor to obtain MPH implies that the original value is in units of 10 m/hr (or .01kmph).

topsquark

#### john2k

If S1S2 is 0666 and is treated as a hexadecimal (base 16) integer (as indicated by int_16), the corresponding decimal (base 10) value is 1638, which when multiplied by .0062 gives 10 (approximately). I state that on the assumption that ".0062" is in decimal. The use of .0062 as a conversion factor to obtain MPH implies that the original value is in units of 10 m/hr (or .01kmph).
The result of 10mph is correct because that's what 0666 gives a result of. It seems that's exactly what int_16 is, it's just a base 10 decimal value. Thanks