Pragmatic directives: Difference between revisions
Content added Content deleted
m (Altering text due to the webpage not displaying "strikethrough" text correctly.) |
(add RPL) |
||
Line 901: | Line 901: | ||
For external routines, the defaults are used. <br><br> |
For external routines, the defaults are used. <br><br> |
||
=={{header|RPL}}== |
|||
Pragmatic directives are given through system flags that can bet with the <code>SF</code> and <code>CF</code> commands anywhere in a program. |
|||
System flags are a legacy of programmable calculators and unfortunately, which flag to set or reset for a specific directive depends on the calculator model you are using. |
|||
As an example, here are the directives controlled by flags on HP-28 models: |
|||
* LAST variable activated |
|||
* Immediate evaluation of constants (e, pi...) and functions |
|||
* length of binary words |
|||
* display and print formats |
|||
* decimal sign and object separator |
|||
* real number display format |
|||
* sound on/off |
|||
* underflow/overflow error handling |
|||
Fortunately, some of them can also be operated through language commands, such as <code>STWS</code> (defines the length of binary words) or <code>RAD</code> (defines radian as the trigonometric unit). |
|||
=={{header|Scala}}== |
=={{header|Scala}}== |