log10(@number)

This arithmetic predicate calculates the base 10 logarithm of it's argument.

see also: arithmetic in Prolog is/2 log/1

Examples
X is log10(0.9). succeeds, X is - 0.04575749
X is log10(34.8). succeeds, X is 1.541579

 

Exceptions
The result exceeds the floating point range an evaluation_error(float_overflow) exception is thrown
Value of the argument Arg is equal or less than 0 a domain_error(value, Arg) exception is thrown

 

 

info@trinc-prolog.com