π
<-

Store conversion in variable

Pour le TI-Basic sur Nspire

Store conversion in variable

Unread postby eduaqa » 10 Oct 2023, 00:33

How to I store the result of a conversion to a variable
example:

Disp 10*_mi▶_km <<<< This work
A:=10*_mi▶_km <<< This generate syntax error

Actually I would like to have in a variable the result of "Avariable"*_mi▶_km/_gal▶_l. -> store to B

I used to do this on the 86 without problem , but here I'm not finding how.
User avatar
eduaqa
Niveau 2: MI2 (Membre Initié)
Niveau 2: MI2 (Membre Initié)
Level up: 40%
 
Posts: 4
Joined: 05 Oct 2023, 12:35
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Store conversion in variable

Unread postby Adriweb » 10 Oct 2023, 13:43

Not really possible because the conversion is just at the display/visual level... but it also depends what you want to do with it.
A workaround is to do like this:

Image

Then the variable a will contain a simplified (because the Nspire always auto-simplifies) version of the result: 16093.44*_m.

If you really wants to have the "km" version in a variable (although it will be forced to be a string one), it can be done with some workarounds via a lua script...

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.2%
 
Posts: 14778
Images: 1123
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb


Return to Nspire-Basic

Who is online

Users browsing this forum: ClaudeBot [spider] and 8 guests

-
Search
-
Social TI-Planet
-
Featured topics
Grand Concours 2024-2025 - Programmation Python
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1127 utilisateurs:
>1094 invités
>26 membres
>7 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)