http://www.aros.orgAROS-ExecAROS-Exec ArchivesPower2People

Ínicio

English

Česky

Deutsch

Ελληυικά

Français

Italiano

Nederlands

Polski

Português

Русский

Español

Suomi

Svenska


Novidades

Arquivo

Introdução

Estado
Imagens
Portos
Licença

Descarregar


Documentação

Utilizadores
Instalação
Utilizando
Comandos de 'Shell'
Applications
F. A. Q.
Desenvolvidores
Contribuintes
Roadmap
À procura de erros...
Trabalhando com Subversão
Compilando
Manual de Desenvolvimento de Aplicações
Manual de Desenvolvimento de Aplicações Zune
Manual de Desenvolvimento do sistema
Manual de Correcção de erros
Referência
Especificações
Guia de Estilos I. U.
Documentando
Portando
Tranduzindo
Sumários
Ligações

Contactos

Listas de eCorreio
Canais de IRC

Créditos

A saber...


Fotografias

Desenvolvidores
Massa de desenvolvidores

Patrocínios

Ligando

Ligações

Get AROS Research Operating System at SourceForge.net. Fast, secure and Free Open Source software downloads

Eval

Index Prev Next


Name

Eval

Synopsis

VALUE1/A,OP,VALUE2/M,TO/K,LFORMAT/K

Function

Evaluate an integer expression and print the result. The result is
written to standard output if not the TO switch are used which instead
prints the result to a file. Using the switch LFORMAT, it is
possible to direct how to write the result. Numbers prefixed by
0x or #x are interpreted as hexadecimal and those prefixed by # or 0
are interpreted as octals. Alphabetical characters are indicated
by a leading single quotation mark ('), and are evaluated as their
ASCII equivalent.

Inputs

VALUE1,
OP,
VALUE2      --  The expression to evaluate. The following operators
                are supported

                Operator              Symbols
                ----------------------------------
                addition              +
                subtraction           -
                multiplication        *
                division              /
                modulo                mod, M, m, %
                bitwise and           &
                bitwise or            |
                bitwise not           ~
                left shift            lsh, L, l
                right shift           rsh, R, r
                negation               -
                exclusive or          xor, X, x
                bitwise equivalence   eqv, E, e

TO          --  File to write the result to
LFORMAT     --  printf-like specification of what to write.
                The possible swiches are:

                %x  --  hexadecimal output
                %o  --  octal output
                %n  --  decimal output
                %c  --  character output (the ANSI-character
                        corresponding to the result value)

                By specifying *n in the LFORMAT string, a newline
                is output.

Direitos de Cópia © 1995-2009, A Equipa de Desenvolvimento AROS. Todos Os Direitos Reservados.
Amiga®, AmigaOS®, Workbench e Intuition são marcas registadas de Amiga Inc. Todas as outras marcas comerciais pertencem aos seus respectivos proprietários.