Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
The Somusar/SoProTech[tm] Booklet Series
Volume VI

"somusar/Tefigel: Reference Guide"

Printer friendly


Contents
1. Introduction
2. File Sections
3. Commands and Instructions
4. Markers
5. Comments
6. Special Characters
7. Variables
8. Arithmetic Computation
8.1 Purpose
8.2 Usage
8.3 Description
9. Boolean Computation
10. Control Flow
11. Subroutines and Functions
12. Built-in Functions
13. Input and Output
14. Packages and Libraries
15. Tag File Processing
16. CSV File Processing
17. Filters
18. Links and Traps
19. Name Spaces
20. Miscellaneous
21. Further Reading

Chapter 8 - Arithmetic Computation

8.1 - Purpose        top

Perform basic arithmetic operations.

8.2 - Usage        top

Add, subtract, multiply, divide two numbers:

   <arithmetic-instruction> <numerical-variable> <numerical-value>
Compute the negative value of a numerical variable:
   neg <numerical-variable>
Truncate value of a numerical variable to the nearest integer value between that value and 0:
   trunc <numerical-variable>

8.3 - Description        top

The <arithmetic-instruction> must be one of the following:

   add
   sub
   mul
   div
A <numerical-variable> must be the identifier of a variable whose current value is a string representing a decimal integer or floating-point number.

A <numerical-value> can be either a <numerical-variable>, or a string representing a decimal integer or floating-point number. The value resulting from the arithmetic computation is stored into <numerical-variable>.

Arithmetic computation is always performed by Tefigel in floating-point in decimal base representation.

[Previous chapter]    [Next chapter]    [Back to top]

http:// www.somusar.com  / doc  / booklets  / tefigel_ref  - Powered by SoProMach
Copyright © 2003-2012 Somusar - Trademarks - Legal - Privacy - Webmaster