Re: Converting decimal number to carpenter's fractions

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
K_D_R said...

Why is it better to calculate the constant each time?

Well, they only get calculated once, when the program starts up. And of course, translated programs don't calculate them at all. The main reason I do it this way is that some numbers are easier to remember than others. I remember 25.4 and 304.8 better than 0.0393700787 and 3.2808399 respectively. Also, sometimes I do it this way as it explains the magic number better.

Interesting answer. I understand and agree. Thanks.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu