Prolog Math

Numeric values
Prolog supports traditional integer and floating point numeric expressions. It provides a variety of functions to test if a variable or atom has a specific numeric subtype, e.g. number(X), integer(X), float(X), etc.

Functions and operators
Numerous conventional binary and unary operators are supported: