Friday 15 February 2019

Prolog: //: Get integer quotient on division


// operator returns integer quotient on division.

1 ?- X is 10 / 3.
X = 3.3333333333333335.

2 ?- X is 10 // 3.
X = 3.


Previous                                                 Next                                                 Home

No comments:

Post a Comment