π
<-

Standard format change-engineering

Pour le TI-Basic sur Nspire

Re: Standard format change-engineering

Unread postby Levak » 10 Aug 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: Select all
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
User avatar
LevakAdmin
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 98.9%
 
Posts: 6414
Images: 22
Joined: 27 Nov 2008, 00:00
Location: 0x1AACC355
Gender: Male
Calculator(s):
MyCalcs profile
Class: BAC+5: Epita (ING3)

Re: Standard format change-engineering

Unread postby jmat » 10 Aug 2013, 18:34

I was thinking of making a program that detect the format and I changed it like this:
Norm => Eng
Eng => Norm
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby Bisam » 11 Aug 2013, 09:14

I said : Use the function "format" !
Code: Select all
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"...
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5670
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby jmat » 11 Aug 2013, 21:04

I've read .... but he had not seen ...
thank you very much
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby 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
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby Bisam » 07 Nov 2014, 22:18

Well, the answer is still at the same place...
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5670
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby jmat » 07 Nov 2014, 23:38

Code: Select all
format(x,"e6")

If I change to e2, e3, e4 .... just gives me more decimals but does not change the exponential me.
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby 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.
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5670
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby jmat » 08 Nov 2014, 02:09

looketh manual to see if they do ... I am somewhat newbie
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: Standard format change-engineering

Unread postby jmat » 11 Nov 2014, 14:05

I failed to realize
User avatar
jmat
Niveau 7: EP (Espèce Protégée: geek)
Niveau 7: EP (Espèce Protégée: geek)
Level up: 12.5%
 
Posts: 50
Joined: 24 Jul 2013, 01:03
Gender: Not specified
Calculator(s):
MyCalcs profile

PreviousNext

Return to Nspire-Basic

Who is online

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

-
Search
-
Social TI-Planet
-
Featured topics
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 !
1234
-
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.
899 utilisateurs:
>853 invités
>38 membres
>8 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)