Convert degree, minute, second to decimal value.
To convert from degree (d) minute (m) second (s) to decimal (D) values use the equation:
To convert from decimal (D) to degree (d), minute (m) and second (s) use the following steps:
d = integer portion of D
remainder = D ⎯ d
m = integer portion of (remainder * 60)
remainder = remainder * 60 ⎯ m
s = remainder * 60
Note: the same process is applicable also to convert time from hour minute and second to decimal values.
Example 1: convert angle of 4-degree 15 minute and 40 seconds to decimal value.
Solution: The value in decimal will be:
Example 2: convert 1.56 hours from decimal value to hour, minute and second values.
Solution: According to the steps presented for angle conversion from decimal to
d, m and s (change h instead of d) we have:
h = 1
remainder = 1.56 ⎯ 1 = 0.56
m = integer (0.56 * 60) = integer (33.6) = 33
remainder = 0.56 * 60 ⎯ 33 = 0.6
s = 0.6 * 60 = 36
The value is: 1 hour, 33 minutes and 36 seconds.
To convert from decimal (D) to yard (y), foot (f) and inch (i) use the following steps:
y = integer portion of D
remainder = D ⎯ y
f = integer portion of (remainder * 3)
remainder = remainder * 3 ⎯ f
i = remainder * 12
Example 3: convert the decimal value of 3.52 yard to yard, foot and inch values.
Solution: According to the steps above we have: D = 3.52
y = 3
remainder = 3.52 ⎯ 3 = 0.52
f = integer (0.52 * 3) = integer (1.56) = 1
remainder = 0.52 * 3 ⎯ 1 = 0.56
i = 0.56 * 12 = 6.72
The result is: 3 yard, 1 foot and 6.72 inch.