Steve's Programming Challenge: Weights and Measures - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: Steve's Programming Challenge: Weights and Measures (/showthread.php?tid=2949) |
RE: Steve's Programming Challenge: Weights and Measures - TerryRitchie - 08-16-2024 (08-16-2024, 03:18 AM)SMcNeill Wrote:Yikes.(08-16-2024, 02:17 AM)TerryRitchie Wrote: Well hell Steve, your example of 1/3rd in decimal made the light bulb finally go off in my head concerning this issue. It was as simple as relating the issue to a decimal equivalent. Heck, it's so simple now. You missed your calling as a teacher methinks. RE: Steve's Programming Challenge: Weights and Measures - SMcNeill - 08-16-2024 And, since it's not right to issue a challenge without also filling it, I'd like to share this solution, which highlights the problem perfectly: Code: (Select All)
Note that I've deliberately set this up to go to a much lower level of precision than just the 1/256 weights which I asked for with the first post. This is to show that even if we keep going deeper and deeper down the rabbit hole, some rabbits just aren't at home to catch to begin with!! RE: Steve's Programming Challenge: Weights and Measures - SpriggsySpriggs - 08-16-2024 As a prudent merchant, I shall purchase a gram scale. Good day. I know it's ancient times. I simply don't care. I've got a gram scale. RE: Steve's Programming Challenge: Weights and Measures - Pete - 08-16-2024 Fine, as long as you don't intend to pay for it with 1/10th pound of gold! Pete - Always on the lookout for the gram scheme of things. |