Author Topic: DT's ultimate unit converter  (Read 4429 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
DT's ultimate unit converter
« on: January 10, 2013, 03:34:36 pm »
Looking through my random junk pile on my flash drive, I found a lot of little tools I'd never published.

Here's a unit converter (I think from 2010) that converts a lot of units. Some stats:
  • 15 categories:
    • Length
    • Area
    • Capacity (volume)
    • Mass
    • Speed (velocity
    • Pressure
    • Energy
    • Power
    • Force
    • Temperature
    • Charge
    • Radiation
    • Time
    • Angle (degrees, radians, etc.)
  • 132 different units
  • 1,170 different conversions
  • 2,975 bytes
Mainly I just like it because it's intuitive. I'm not sure the units I picked were the most useful ones, though. If you try it and find one of the conversions categories is missing a unit you use a lot, please tell me :)

DOWNLOAD
« Last Edit: June 26, 2013, 01:55:17 am by Deep Thought »




Offline Link

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 152
  • Rating: +7/-3
  • Well excuse me princess!
    • View Profile
Re: A lot of conversions
« Reply #1 on: January 10, 2013, 03:37:02 pm »
o.O Wow, I didn't know there were that many units. How did you get that black background behind the word Conversion though?

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: A lot of conversions
« Reply #2 on: January 10, 2013, 03:38:36 pm »
o.O Wow, I didn't know there were that many units. How did you get that black background behind the word Conversion though?
TI-BASIC menu titles are white-on-black.




Offline Link

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 152
  • Rating: +7/-3
  • Well excuse me princess!
    • View Profile
Re: A lot of conversions
« Reply #3 on: January 10, 2013, 03:40:30 pm »
Oh, I never actually used the menu command, probably that's why...
« Last Edit: January 10, 2013, 03:40:45 pm by Link »

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: A lot of conversions
« Reply #4 on: January 10, 2013, 03:41:13 pm »
Other wise, there is an ASM flag for inverted text that can probably be accomplished with a small Hex program.

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: A lot of conversions
« Reply #5 on: January 10, 2013, 03:46:57 pm »
Oh, I never actually used the menu command, probably that's why...
It's usually not that great of an idea because using labels in any way tends to slow down the program (I think, not sure), but since this is a utility and not a game it doesn't matter much.
« Last Edit: January 10, 2013, 03:49:09 pm by Deep Thought »




Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: A lot of conversions
« Reply #6 on: January 10, 2013, 05:40:17 pm »
Oh, I never actually used the menu command, probably that's why...
It's usually not that great of an idea because using labels in any way tends to slow down the program (I think, not sure).
It does slow down the program, but i think only while jumping and IIRC DCS had a custome lbl/goto routine which was quicker.

And that are a hole lot of units to convert O.o
That mustve have taken long, lol

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: A lot of conversions
« Reply #7 on: January 10, 2013, 05:48:29 pm »
Ooo. Could I use this for my Equation Program(I'm too lazy to make my own)? I will give you credit.
I like milk.

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 #8 on: June 26, 2013, 01:59:29 am »
Dunno of anyone here wants to hear an announcement about a unit converter but ... it's posted to ticalc.org now (download link here).

There's a minor fix for a bug that caused Mass conversion not to show. If you find anything else, please let me know!




Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: DT's ultimate unit converter
« Reply #9 on: June 26, 2013, 02:55:36 am »
Add a converter for converting bases 2,8,10,16,26 etc.
If you like my work: why not give me an internet?








Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: DT's ultimate unit converter
« Reply #10 on: June 26, 2013, 03:25:50 am »
There's already that in Omnicalc and zStart makes it even more handy. ;)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: DT's ultimate unit converter
« Reply #11 on: June 26, 2013, 04:08:26 am »
Add a converter for converting bases 2,8,10,16,26 etc.
That would be nice indeed. Omnicalc/Zstart have one, but the Omnicalc one was a bit confusing to use and some people don't have those apps installed anyway.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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 #12 on: June 27, 2013, 12:12:41 am »
Add a converter for converting bases 2,8,10,16,26 etc.
That's a good idea—think I'll add it in.

It might make the program significantly larger though because base conversion works in a very different way. (The six temperature units take up a large part of the program for the same reason.)




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: DT's ultimate unit converter
« Reply #13 on: June 27, 2013, 02:33:10 am »
By significantly, do you mean like 8000 bytes? O.O
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: DT's ultimate unit converter
« Reply #14 on: June 27, 2013, 07:57:14 am »
My guess would be more like 1k...
So in the programming you just store then like the ratio (exept for temp) and then put them into the same function?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!