Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Calculators Ti89: display text and variable

  1. Feb 27, 2009 #1
    with ti89, how can i display both text and variable on the same line?
    i tried
    Code (Text):
    "the answer is " + b
    and a bunch of other things but nothing has worked so far

    it said somewhere on tnhe internet that i can do:
    Code (Text):
    "the answer is " b
    but when i run the program all you see is
    instead of
    then when go back to edit the code it is automatically set to
    Code (Text):
    "the answer is "*b
    Last edited: Feb 27, 2009
  2. jcsd
  3. Feb 27, 2009 #2
    I think the TI-89 treats "expA expB" as a request to multiply expA and expB together.

    It's been awhile but what I suggest doing is converting b to a string, then adding it to your normal string. So like it would be

    "the answer is " + string(b)

    "string" may not be the name of the conversion function but there must be some way to go number->string.
  4. Feb 28, 2009 #3
    ok that doesnt work either but i finally did find out. pretty much what you have, except instead of + you have to use &
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook