Result: | 135/4 |
|
PREVPRIME |
|
|
Type: | Function |
|
Description: | Given an integer, finds the closest prime number smaller than the integer. Like ISPRIME?, it uses | |
| a pseudoprime check for large numbers. | |
Access: | Arithmetic, !ÞINTEGER L |
|
Input: | An integer or an expression that evaluates to an integer. | |
Output: | The closest prime number smaller than the integer. | |
Example: | Find the closest, smaller prime number to 145. | |
Command: | PREVPRIME(145) |
|
Result: | 139 |
|
See also: | ISPRIME?, NEXTPRIME |
|
PRLCD | Command |
|
Type: |
| |
Description: | Print LCD Command: Prints a | |
| annunciators). |
|
| The width of the printed image of characters in the display is narrower using PRLCD than using a | |
| print command such as PR1. The difference results from the spacing between characters. On the | |
| display there is a single blank column between characters, and PRLCD prints this spacing. Print | |
| commands such as PR1 print two blank columns between adjacent characters. | |
Access: | …µPRLCD |
|
Flags: | I/O Device | |
| must be clear, I/O Device for Wire | |
Input/Output: | None |
|
Example: | The command sequence ERASE DRAW PRLCD clears PICT, plots the current equation, then | |
| prints the graphics display. |
|
See also: | CR, DELAY, OLDPRT, PRST, PRSTC, PRVAR, PR1 | |
|
|
|
PROMPT | Command |
|
Type: |
| |
Description: | Prompt Command: Displays the contents of “prompt” in the status area, and halts program | |
| execution. |
|
| PROMPT is equivalent to 1 DISP 1 FREEZE HALT. | |
Access: | !°LIN LPROMPT | ( °is the |
Input/Output:
|
| Level 1/Argument 1 | Level 1/Item 1 |
|
|
|
|
|
| “prompt” | → |
|
|
| |
See also: | CONT, DISP, FREEZE, HALT, INFORM, INPUT, MSGBOX | ||
|
|
|
|
Type: Command
Description: Prompt Command: Creates a variable with the name supplied as an argument, prompts for a value, and stores the value you enter in the variable.
Access: …µPROMPTSTO