π
<-

Standard format change-engineering

Pour le TI-Basic sur Nspire

Re: Standard format change-engineering

Message non lude Levak » 10 Aoû 2013, 15:14

I don't really understand the statements "setMode(3,1)=num2" and "setMode(3,3)=num2"
Were you looking for "getMode(3)=1" and "getMode(3)=3" ?

Also, what are you trying to accomplish with "num2▶setMode(3,1)" ? Doesn't do anything but an error for me.

What I would do is :
Code: Tout sélectionner
Define to_eng(x)=Prgm
  setMode(3,3)
  Disp x
EndPrgm
Responsable design/graphique de TI-Planet
I do not get mad at people, I just want them to learn the way I learnt.
ImageTNOC [topic][DL]
nClock [topic][DL]
HideManager [topic][DL]
ZLock [topic][DL]
Theme Editor [topic][DL]
Mes programmes
Avatar de l’utilisateur
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Prochain niv.: 98.9%
 
Messages: 6414
Images: 22
Inscription: 27 Nov 2008, 00:00
Localisation: 0x1AACC355
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: BAC+5: Epita (ING3)

Re: Standard format change-engineering

Message non lude jmat » 10 Aoû 2013, 18:34

I was thinking of making a program that detect the format and I changed it like this:
Norm => Eng
Eng => Norm
Avatar de l’utilisateur
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 12.5%
 
Messages: 50
Inscription: 24 Juil 2013, 01:03
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude Bisam » 11 Aoû 2013, 09:14

I said : Use the function "format" !
Code: Tout sélectionner
Define my_disp(x)=Prgm
Disp format(x,"f6"),format(x,"e6")
EndPrgm

Can't you read the manual ? It is on page 48 of the "Reference Guide"...
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5670
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude jmat » 11 Aoû 2013, 21:04

I've read .... but he had not seen ...
thank you very much
Avatar de l’utilisateur
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 12.5%
 
Messages: 50
Inscription: 24 Juil 2013, 01:03
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude jmat » 07 Nov 2014, 15:50

retake this thread need to program a code that given a number I return multiple formats scientists
example:

0.00956
0.956E-2
9.56E-3
95.6E-4
956.0E-5
9560E-6

Thank you
Avatar de l’utilisateur
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 12.5%
 
Messages: 50
Inscription: 24 Juil 2013, 01:03
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude Bisam » 07 Nov 2014, 22:18

Well, the answer is still at the same place...
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5670
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude jmat » 07 Nov 2014, 23:38

Code: Tout sélectionner
format(x,"e6")

If I change to e2, e3, e4 .... just gives me more decimals but does not change the exponential me.
Avatar de l’utilisateur
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 12.5%
 
Messages: 50
Inscription: 24 Juil 2013, 01:03
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude Bisam » 07 Nov 2014, 23:51

Oh, you're right... you'll have to make it by yourself, if so !
Your tools : the following functions :

- string(a) : converts "a" to a character string
- mid(string, from, number) : extracts "number" characters from "string" beginning at the character placed in "from" position. "number" is optional. If omitted, all the characters from "from" position to end of string are selected
- string1 & string2 : concatenates 2 strings
- inString(search_string, pattern, from) : looks for "pattern" in "search_string" beginning at "from" position and returns the position of the first character of pattern found in search_string. If not found, returns 0. "from" is optional and equals 1 if omitted.
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5670
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude jmat » 08 Nov 2014, 02:09

looketh manual to see if they do ... I am somewhat newbie
Avatar de l’utilisateur
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 12.5%
 
Messages: 50
Inscription: 24 Juil 2013, 01:03
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

Re: Standard format change-engineering

Message non lude jmat » 11 Nov 2014, 14:05

I failed to realize
Avatar de l’utilisateur
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Prochain niv.: 12.5%
 
Messages: 50
Inscription: 24 Juil 2013, 01:03
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile

PrécédenteSuivante

Retourner vers Nspire-Basic

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 8 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Ndless for CX 4.5.5 / CX II 6.2.0
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
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2292 utilisateurs:
>2267 invités
>18 membres
>7 robots
Record simultané (sur 6 mois):
43991 utilisateurs (le 10/09/2025)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)