Author Topic: DT's ultimate unit converter  (Read 4913 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: DT's ultimate unit converter
« Reply #15 on: June 27, 2013, 12:25:02 pm »
Probably more like 400 bytes, which doesn't sound like that much but most of the other categories add around just 100 bytes each.

What I'm worried about is that it would have to be added to the common key-detection code, which would slow down conversion for all modes slightly. (All current conversion modes, except for Temperature, don't affect the main code at all.)
So in the programming you just store then like the ratio (exept for temp) and then put them into the same function?
Yep, that's why it's so small, and that's why Temperature and Base conversion are both heavier than the others—they don't align to ratios very nicely.
« Last Edit: June 27, 2013, 12:26:43 pm by Deep Thought »