.68 inch to the nearest eight of an inch. Is there a formula?

sort of. Numbers greater than .5 round up, numbers less than .5 round down.

1/8 = .125
.68/.125 = 5.44 * 1/8"

.44 < .5, so 5.44 rounds down to 5 units of 1/8"