Author Topic: Base-X  (Read 6373 times)

0 Members and 2 Guests are viewing this topic.

BCTurk

  • Guest
Base-X
« on: January 07, 2006, 07:08:00 pm »
I'm starting to make a program that would let you do arithmetic in a different base then base 10.  (For example, you could do calculation in any base from 2 (Binary) to 16 (Hexadecimal).  Is anyone interested in this kind of thing?  I'm only wondering because I just want to know if I should make it user-friendly or not, as it is really a training for a larger project that I'm not going to disclose atm.  Don't worry, I'm still working on my other projects, but PIRATES! is stalled/slowly moving until xLIB 0.6 is released.  The BASIC RPG is more of a in math-class thing to code, and this won't take too long.

So, anyone interested?

EDIT: Name of prog is now Base-X, because you can change base...

CDI

  • Guest
Base-X
« Reply #1 on: January 08, 2006, 03:33:00 am »
If you make it, only make is 2,4,6,8,10,12,16,18, and 20 that way it'll have a nice range, but odd bases are harder to work with

BCTurk

  • Guest
Base-X
« Reply #2 on: January 08, 2006, 04:38:00 am »
Oh, I dunno, my method works for all bases 2-10.  I'm working on one that does 11-16 (17-20 seems unuseble for any application).

Liazon

  • Guest
Base-X
« Reply #3 on: January 08, 2006, 06:36:00 am »
include a binary to hex quick look up table.  4 binary digits equals one hex letter, and such a look up table would be useful.

MathStuf

  • Guest
Base-X
« Reply #4 on: January 08, 2006, 07:40:00 am »
Well, converting between bases usually is more taxing than just going with base 10 to begin wtih (for calcs at least). I do have some base manipulation programs (2-36, operations with diff bases, times table maker for bases 2-36 (takes forever after ~base 12 though)).

BCTurk

  • Guest
Base-X
« Reply #5 on: January 09, 2006, 02:00:00 am »
@calcul - Mmmm, I'll try, we will see, this will be put on hold if we/I do infact make a xLIB shell (which I might not).  The main idea for the program is to be able to do basic arithmetic in different bases.

BCTurk

  • Guest
Base-X
« Reply #6 on: January 11, 2006, 11:32:00 am »
(Double-posting, uh-oh, I could get shot...O_Oshocked2.gif)

Ok, so I need some help.  Does anyone know of a good way to store whatever was just typed as a string.  The method I have right now works, but there's got to be a faster way.

c1-->
CODE
ec1
If Z=92
Then
Text(V,W,1
"1"->Str1
End
c2
ec2

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
Base-X
« Reply #7 on: January 11, 2006, 11:36:00 am »
c1-->
CODE
ec1Prompt Str1c2
ec2
One of these days I'll get a sig I'm really proud of.

BCTurk

  • Guest
Base-X
« Reply #8 on: January 11, 2006, 11:38:00 am »
Problem is that it's graphscreen, and the user needs to push the button and see it onscreen, just like if they were just using the calc for math.

Liazon

  • Guest
Base-X
« Reply #9 on: January 11, 2006, 11:41:00 am »
Design your own keyboard?

Offline tifreak

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2708
  • Rating: +82/-3
  • My Kung Fu IS strong...
    • View Profile
    • TI-Freakware
Base-X
« Reply #10 on: January 11, 2006, 12:03:00 pm »
I will send you the program tonight or tommorrow BC. :)smile.gif
Projects: AOD Series: 75% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

dragon__lance

  • Guest
Base-X
« Reply #11 on: January 11, 2006, 12:26:00 pm »
one way is to store a string of all letters. Then correspond each letter to a key press. This could get tricky though...

BCTurk

  • Guest
Base-X
« Reply #12 on: January 11, 2006, 01:39:00 pm »
@calcul - do you mean that sarcastically?

@tifreak8x - Thanks many

@dragon_lance - Mmm, it would probably be slower as well :(sad.gif.

spengo

  • Guest
Base-X
« Reply #13 on: January 11, 2006, 01:42:00 pm »
Sounds interesting. Something fun to play with to say the least. This will be for the z80 calcs right?

BCTurk

  • Guest
Base-X
« Reply #14 on: January 11, 2006, 01:43:00 pm »
Si.  TI-83+ Family BASIC.