Re: Converting decimal number to carpenter's fractions
- Posted by K_D_R May 06, 2012
- 2913 views
And it just gets better and better...
One question for Derek...
constant -- mm_inch = 1/25.4, -- value to be computed mm_inch = 0.0393700787, -- constant -- cm_inch = 1/2.54, cm_inch = 0.393700787, -- m_inch = 1/.0254, m_inch = 39.3700787, -- m_ft = 1000 / 304.8, m_ft = 1000 / 304.7999995367 m_ft = 3.2808399 -- cm_ft = 10 / 304.7999995367 cm_ft = 0.032808399
I noticed that you choose to computed the value of the constant every time. Jim Roberts used this method in his convert.e utility program as well. Why is it better to calculate the constant each time?
Regards,

