Arithmetic IF

Arithmetic IF

The arithmetic IF statement has been for several decades a three-way arithmetic conditional statement, starting from the very early version (1957) of Fortran, and including FORTRAN IV, FORTRAN 66 and FORTRAN 77. Instead of the common if statements seen in other languages, the statement defines three different branches depending on whether the result of an expression was negative, zero, or positive, in said order, written as:

IF (expression) negative,zero,positive

While it was originally the only kind of IF statement provided in the language, the feature became more and more unused after the introduction of the more powerful and common logical IF statement, so that it was finally labeled obsolescent in Fortran 90 .

ee also

* Sign function
* Three-way comparison
* Conditional (programming)

Reference

* [http://www.everything2.com/index.pl?node=arithmetic+IF arithmetic IF@everything2.com]
* [http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode34.html Modular Programming with Fortran 90 - Obsolescent Features]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Arithmetic — tables for children, Lausanne, 1835 Arithmetic or arithmetics (from the Greek word ἀριθμός, arithmos “number”) is the oldest and most elementary branch of mathematics, used b …   Wikipedia

  • Arithmetic — A*rith me*tic, n. [OE. arsmetike, OF. arismetique, L. arithmetica, fr. Gr. ? (sc. ?), fr. ? arithmetical, fr. ? to number, fr. ? number, prob. fr. same root as E. arm, the idea of counting coming from that of fitting, attaching. See {Arm}. The… …   The Collaborative International Dictionary of English

  • arithmetic — [ə rith′mə tik; ] for adj. [, ar΄ith met′ik, er΄ith met′ik] n. [ME arsmetrike < OFr arismetrique (infl. in form by L ars metrica, the art of measurement) < L arithmetica < Gr ( hē) arithmētikē (technē), (the) counting (art) <… …   English World dictionary

  • arithmetic — ► NOUN 1) the branch of mathematics concerned with the properties and manipulation of numbers. 2) the use of numbers in counting and calculation. ► ADJECTIVE ▪ relating to arithmetic. DERIVATIVES arithmetical adjective arithmetically adverb… …   English terms dictionary

  • arithmetic — (n.) mid 13c., arsmetike, from O.Fr. arsmetique (12c.), from L. arithmetica, from Gk. arithmetike (tekhne) (the) counting (art), fem. of arithmetikos of or for reckoning, arithmetical, from arithmos number, counting, amount, from PIE root *re(i)… …   Etymology dictionary

  • arithmetic — [n] mathematics addition, calculation, computation, division, estimation, figuring, multiplication, reckoning, subtraction; concepts 349,764 …   New thesaurus

  • arithmetic — arithmetically, adv. n. /euh rith meuh tik/; adj. /ar ith met ik/, n. 1. the method or process of computation with figures: the most elementary branch of mathematics. 2. Also called higher arithmetic, theoretical arithmetic. the theory of… …   Universalium

  • arithmetic — (The noun is pronounced [[t]ərɪ̱θmɪtɪk[/t]]. The adjective is pronounced [[t]æ̱rɪθme̱tɪk[/t]].) 1) N UNCOUNT Arithmetic is the part of mathematics that is concerned with the addition, subtraction, multiplication, and division of numbers.… …   English dictionary

  • arithmetic — ar|ith|met|ic1 [ ə rıθmətık ] noun uncount * 1. ) the part of mathematics that involves basic calculations such as adding or multiplying numbers: He s very good at arithmetic. 2. ) the process of doing a calculation: I m not sure my arithmetic is …   Usage of the words and phrases in modern English

  • arithmetic — I UK [əˈrɪθmətɪk] / US noun [uncountable] * 1) the part of mathematics that involves basic calculations such as adding or multiplying numbers He s very good at arithmetic. 2) the process of doing a calculation I m not sure my arithmetic is… …   English dictionary

  • arithmetic — n. & adj. n. 1 a the science of numbers. b one s knowledge of this (have improved my arithmetic). 2 the use of numbers; computation (a problem involving arithmetic). adj. (also arithmetical) of or concerning arithmetic. Phrases and idioms:… …   Useful english dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”