integer

declare an integer variable 

KornShell Built-in


SYNOPSIS

integer [┬▒Hlprtux] [┬▒LRZ[number]] [variable[=value] ...]


DESCRIPTION

integer declares a KornShell variable to be an integer. This improves the speed with which the variable can be manipulated. integer is a built-in alias defined with

alias integer='typeset -i'

The options for integer are identical to those for the version of typeset that deals with variables. Invoking integer without any arguments displays all integer variables.

For more information, see typeset.


DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

The number of invalid variable names specified on the command line.


PORTABILITY

POSIX.2. Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.

On UNIX systems, integer is built into the KornShell but not the Bourne Shell. It is an extension to the POSIX.2 and XPG standards.


NOTE

This is an alias built into the MKS KornShell.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC Integrity


SEE ALSO

Commands:
alias, sh, typeset


PTC MKS Toolkit 10.1 Documentation Build 15.