Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: joao9856 on July 14, 2013, 07:03:04 pm

Title: variables
Post by: joao9856 on July 14, 2013, 07:03:04 pm
can i add numbers to avariable like this

a:=1
b:=2
b:=ba
b:=21

no multiplication wanted

Ti-Nspire CX
Title: Re: variables
Post by: Streetwalrus on July 15, 2013, 01:09:33 am
It's not possible this way but you can do :
b:=b*10^(int(log(a))+1)+a
This formula will give you what you want but I'm not sure about syntax on the Nspire. :/
Title: Re: variables
Post by: joao9856 on July 15, 2013, 07:15:23 am
tat would give 200 with the example numbers :-\, and if i use bigger numbers like 97 and 84 it gives me 9.7E87, any other ideas?
Title: Re: variables
Post by: Streetwalrus on July 15, 2013, 07:33:17 am
tat would give 200 with the example numbers :-\, and if i use bigger numbers like 97 and 84 it gives me 9.7E87, any other ideas?
Weird I tried it on my 84+ and it worked fine. :/
Title: Re: variables
Post by: Hayleia on July 15, 2013, 07:34:47 am
Weird, I just tried on my CX CAS and it worked fine too.
Are you sure that what you are writing is actually b*10int(log(a))+1+a and not b*10int(log(a))+1+a ?
Title: Re: variables
Post by: joao9856 on July 15, 2013, 07:54:49 am
thanks, i was doing it wrong x.x