manual:chapter6:flags:cmd_grad

Synopsis


Set the angle mode flags to gradians

Stack Diagram


Input Stack Output Stack
Level 1 Level 1

Legend

Keyword type Command
Parallel list processing capabilities Group 1 Commands that cannot parallel process
Affected by flags -17 Default angle unit (bit 0)
-18 Default angle unit (bit 1)

Description


The GRAD command clears flag –17 and sets flag –18, and displays the ∡g annunciator.

In GRAD angle mode, real number arguments that represent angles are interpreted as gradians, and real number results that represent angles are expressed in gradians.

Compatibility


GRAD is fully equivalent to its userRPL counterpart.

Usage


Input

4:                                      
3:                                      
2:                                      
1:                                   100
…………………………………………………………………………………………………………
GRAD SIN                                


Output

4:                                      
3:                                      
2:                                      
1:                                     1
…………………………………………………………………………………………………………
                                        

Related Commands


Menus, Flags and System Settings 34 16 NEW

Command Short Description
SETLOCALE Change the separator symbols NEW
SETNFMT Change the display format for numbers NEW
SF Set a flag
CF Clear a flag
FC? Test if a flag is clear
FS? Test if a flag is set
FC?C Test if a flag is clear, then clear it
FS?C Test if a flag is set, then clear it
TMENU Display the given menu on the active menu area CHANGED
TMENULST Display the given menu on the menu area the user used last NEW
TMENUOTHR Display the given menu on the menu are the user did not use last NEW
MENUSWAP Swap the contents of menu areas 1 and 2 NEW
MENUBK Display the previous menu on the active menu area NEW
MENUBKLST Display the previous menu on the area the user used last NEW
MENUBKOTHR Display the previous menu on the area the user did not use last NEW
RCLMENU Recall the active menu CHANGED
RCLMENULST Recall the menu the user used last NEW
RCLMENUOTHR Recall the menu the user did not use last NEW
DEG Set the angle mode flags to degrees
GRAD Set the angle mode flags to grads (gons)
RAD Set the angle mode flags to radians
DMS Set the angle mode to DMS (as DD.MMSS)
ASNKEY Assign a custom definition to a key NEW
DELKEY Remove a custom key definition NEW
STOKEYS Store and replace all custom key definitions CHANGED
RCLKEYS Recall the list of all custom key definitions CHANGED
TYPE Get type information from an object CHANGED
TYPEE Get extended type information from an object NEW
GETLOCALE Get the current separator symbols NEW
GETNFMT Recall the current display format for numbers NEW
RCLF Recall all system flags CHANGED
STOF Store and replace all system flags CHANGED
VTYPE Get type information on the contents of a variable CHANGED
VTYPEE Get extended type information on the contents of a variable NEW
  • manual/chapter6/flags/cmd_grad.txt
  • Last modified: 2021/10/04 15:46
  • by jojo1973