The G Command

We're glad you came by, but you might find what you're looking for elsewhere.

TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it.

Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope.

gradian.png

Command Summary

Converts an angle to gradians, if necessary.

Command Syntax

angle G

Menu Location

  • Press 2nd MATH to enter the MATH popup menu.
  • Press 2 to enter the Angle submenu.
  • Press C to select G.

Calculator Compatibility

This command requires a TI-89 Titanium or Voyage 200 calculator with AMS version 3.10 or higher.

Token Size

1 byte

NOTE: Due to the limitations of the wiki markup language, the G command on this page does not appear as it would on the calculator. See Wiki Markup Limitations for more information.

The G symbol used after an angle makes sure the angle is interpreted as being in gradians (an obscure angle measure in which a full circle is equal to 400 gradians); this functionality is present only on TI-89 Titanium or Voyage 200 calculators with AMS version 3.10. If the calculator is already in gradian mode, xG is equal to x; in degree mode, xG is equal to 9*x/10; and in radian mode, xG is equal to π*x/200.

If you're using gradian angle measures extensively in a program, it's a better idea to use setMode() to switch to gradian mode and not worry about this. However, there are two reasons you might want to use G:

  • If you need an angle in gradians only once or twice, don't bother changing the mode setting.
  • In a function, you're forced to use G, since setMode() isn't valid in a function.

In gradian mode (no conversion is necessary, so no conversion is done):

:cos(100)
           1
:cos(100^G)
           1
:100^G
           100

In degree mode:

:cos(100)
           cos(100)
:cos(100^G)
           1
:100^G
           90

Related Commands

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.