pi [ISO]

This arithmetic predicate returns the value of the constant pi.

see also: arithmetic in Prolog is/2

Examples
X is pi. succeeds, X is 3.141593

 

 

info@trinc-prolog.com