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

Home

English

Česky

Deutsch

Ελληυικά

Français

Italiano

Nederlands

Polski

Português

Русский

Español

Suomi

Svenska


Novitą

Archivio

Introduzione

Stato
Foto
Porting
Licenza

Download


Documentazione

Utenti
Installazione
Come si usa
Comandi shell
Applications
FAQ
Sviluppatori
Per contribuire
Roadmap
Bug Tracker
Lavorare con Subversion
Compilare
Manuale Sviluppo Applicazioni
Manuale Sviluppo Applicazioni Zune
Manuale Sviluppo Sistema
Manuale Debugging
Riferimenti
Specifiche
Guida stili UI
Documentazione
Porting
Traduzione
Sommari
Links

Contatti

Mailing list
Canali IRC

Riconoscimenti

Acknowledgements


Immagini

Sviluppatori
Ciurma degli sviluppatori

Sponsor

Collegamenti

Links

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.

Copyright © 1995-2009, The AROS Development Team. Tutti i diritti riservati.
Amiga® č un marchio registrato di Amiga Inc. Tutti i diritti sui marchi vanno ai legittimi proprietari.