The ZInteger Command

Command Summary

Zooms to a square window with all-integer coordinates.

Command Syntax


Menu Location


  1. ZOOM to access the zoom menu.
  2. 8 to select ZInteger, or use arrows and ENTER.

Calculator Compatibility


Token Size

1 byte

When ZInteger is chosen as a menu option outside a program, it asks for a point on the graph screen. This point's coordinates are rounded to the nearest integer point. Then the window variables are changed so the window is centered at this point, and so that the coordinates of every pixel are integers. ΔX and ΔY, the distances between two pixels next to each other, are both 1.

The above process modifies Xmin, Xmax, Ymin, and Ymax. Xscl and Yscl are also modified: both are set to 10. No other variables are modified (unless you count ΔX and ΔY, which are affected as they are defined).

The ZInteger command (usable in a program only) has a slightly different effect: instead of allowing you to choose a point, it automatically uses the point that is the current center.

Advanced Uses

A graph window commonly used in programming can be created by using the ZStandard and ZInteger commands:


Error Conditions

  • ERR:INVALID occurs if this command is used outside a program.

Related Commands

See Also


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