TI BASIC Does anyone know what this syntax is?

  • Context: Calculators 
  • Thread starter Thread starter Saladsamurai
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the TI BASIC command syntax, specifically the use of '0' in the command "Request 'E=', E, 0". The consensus is that '0' serves as a default value, allowing the program to handle cases where the user does not input any data. Additionally, it is established that '0' disables alpha lock, ensuring that the input is treated as a number rather than a string. Participants noted the inadequacies of the manual in providing clear guidance on this functionality.

PREREQUISITES
  • Understanding of TI BASIC programming syntax
  • Familiarity with user input handling in programming
  • Knowledge of data types, specifically numeric vs. string types
  • Experience with debugging through trial and error
NEXT STEPS
  • Explore TI BASIC input commands and their parameters
  • Learn about handling default values in programming
  • Investigate the implications of alpha lock in TI BASIC
  • Review documentation and community resources for TI BASIC
USEFUL FOR

TI BASIC programmers, educators teaching programming fundamentals, and anyone interested in understanding user input handling in TI BASIC syntax.

Saladsamurai
Messages
3,009
Reaction score
7
What does the '0' do in this command? ... I should be able to figure this out, but I am stumped at the moment :redface: It is prompting the user for an "E" value, then storing it in E and then...

Code:
Request "E=",E,0
 
Computer science news on Phys.org
The manual should say. :wink:

Executing the code might offer insight.


But if I had to guess, I would say that it would use 0 as a default value. (e.g. if the user hit enter without typing in any data)
 
Hurkyl said:
The manual should say. :wink:

Executing the code might offer insight.But if I had to guess, I would say that it would use 0 as a default value. (e.g. if the user hit enter without typing in any data)

Yeah, the manual is pretty terrible (i.e. wrong a lot of the time). I did figure this out though by trial and error. 0 turns alpha lock off, so that by default the user is entering a number and not a string.
 

Similar threads

Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
25
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 10 ·
Replies
10
Views
27K
  • · Replies 1 ·
Replies
1
Views
3K