Hi, a bit of old school maths, i am presented with a measurement in inches and wish to show it in feet and inches, i.e. 64" shown as feet and inches would be 5' 4" for those too young to remember imperial measurements there's 12 inches in a foot
Similarly I want to convert lbs (pounds) into Stones and pounds, again if I have 147lbs that would be 10st 7lbs, as there's 14lbs in a stone
I've tried dividing it by 12 or 14 but it gives a decimal figure, i.e 64 / 12 = 5.333333 whereas I want to know how many feet (5) and what the remainder is (4), is there a way of doing such a calculation in B4A
Similarly I want to convert lbs (pounds) into Stones and pounds, again if I have 147lbs that would be 10st 7lbs, as there's 14lbs in a stone
I've tried dividing it by 12 or 14 but it gives a decimal figure, i.e 64 / 12 = 5.333333 whereas I want to know how many feet (5) and what the remainder is (4), is there a way of doing such a calculation in B4A