- Unit Tool
- 04 May 2022 02:56:29 pm
- Last edited by commandblockguy on 13 May 2022 01:33:34 am; edited 5 times in total
A while ago, I came to the conclusion that there weren't enough unit converters in the ticalc.org archives yet, and decided to write my own.
Of course, I wouldn't be satisfied with just a TI-BASIC program where you have to run it and manually type out the quantity you want to convert, so instead I integrated it into the TI-OS homescreen. Here are some screenshots of it in operation:
Current features:
Planned features:
No download available as of now, as the code's a mess and still slightly broken, and there's not yet an easy way of initially getting a unit into a variable. It also doesn't support imperial units at the moment. In the meantime, see if you can guess how this is implemented.
I probably should also use a less boring name than "Unit Tool," if anyone has any suggestions for that.
Of course, I wouldn't be satisfied with just a TI-BASIC program where you have to run it and manually type out the quantity you want to convert, so instead I integrated it into the TI-OS homescreen. Here are some screenshots of it in operation:
Current features:
- Unit parsing (by multiplying a number by a string containing the unit)
Multiply/divide two quantities
Add/subtract two quantities with the same dimension
Negation of quantities
Take the reciprocal of a quantity
Find the square/square root of a quantity
Store quantities to and recall quantities from a variable
Display quantities using SI named derived units with SI prefixes
Display other quantities with SI base units
Throw an error when trying to perform an operation on quantities with incompatible units
Support for both MathPrintâ„¢ and Classic modes
Support for the Output() command
Support for toString()/eval()
Planned features:
- Menu with unit names
Quantities to an arbitrary power
Arbitrary roots of a quantity
Comparisons between quantities
Support for TI-BASIC commands such as Disp/Text
Lists of quantities
Configuration options
No download available as of now, as the code's a mess and still slightly broken, and there's not yet an easy way of initially getting a unit into a variable. It also doesn't support imperial units at the moment. In the meantime, see if you can guess how this is implemented.
I probably should also use a less boring name than "Unit Tool," if anyone has any suggestions for that.