Share on Facebook Share on Twitter Email
Answers.com

Arithmetic IF

 
Wikipedia: 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. Unlike the logical IF statements seen in other languages, the Fortran 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 Fortran, the feature was used less and less frequently after the more powerful logical IF statements were introduced, and was finally labeled obsolescent in Fortran 90.

See also

References


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 
Learn More
acalculia
computation
Dyscalculia (in medicine)

In arithmetic what is a factor? Read answer...
What is an arithmetic progression? Read answer...
Who uses arithmetic? Read answer...

Help us answer these
What is a law of arithmetic?
Who discover arithmetic?
What is arithmetic accuracy?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Arithmetic IF" Read more