Download context/2 - bei IF Computer

Transcript
is/2
Predicate
Arithmetic
Arguments
Result
Expression
Term (usually number)
Number or arithmetic expression
Exceptions
instantiation_error
The argument Expression or a subterm must not be a variable, but a variable was
specified.
type_error(evaluable)
The argument Expression must be a number or an evaluable arithmetic expression,
but is a term of another type, or an operation in the expression Expression requires
a number as an argument, but a different term was specified.
type_error(integer)
An operation in the expression Expression requires an integer as an argument, but
a term of another type was specified.
type_error(float)
An operation in the expression Expression requires a floating-point number as an
argument, but a term of another type was specified.
type_error(number)
An operation in the expression Expression requires a number as an argument, but
a term of another type was specified.
domain_error(single_precision_integer)
An operation in the expression Expression requires an integer with machine precision as an argument, but a big number was specified.
evaluation_error(int_overflow)
An arithmetic overflow was detected during the evaluation of Expression.
evaluation_error(float_overflow)
An arithmetic overflow was detected during the evaluation of Expression.
evaluation_error(underflow)
An arithmetic underflow was detected during the evaluation of Expression.
evaluation_error(undefined)
An arithmetic function with invalid arguments was called during the evaluation of
Expression.
evaluation_error(zero_divisor)
Division by 0 was performed during the evaluation of Expression.
Hints
The atom is is defined as an infix operator.
IF/Prolog V5.3
313
Reference Manual