Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request predicate divmod/4. #67

Closed
Jean-Luc-Picard-2021 opened this issue Oct 28, 2022 · 2 comments
Closed

Feature request predicate divmod/4. #67

Jean-Luc-Picard-2021 opened this issue Oct 28, 2022 · 2 comments

Comments

@Jean-Luc-Picard-2021
Copy link

Jean-Luc-Picard-2021 commented Oct 28, 2022

The title says it all. Many bigint libraries can produce
div and mod simultaneously, and therefor some Prolog
systems have a divmod/4 predicate.

I stepped over this problem when porting some code:

?- float_pow_half_even(-14744, -3, X).
   error(existence_error(procedure,divmod/4),float_rat_half_even/3).

See also some discussion here:

Feature request predicate divmod/4
ciao-lang/ciao#71

@Jean-Luc-Picard-2021 Jean-Luc-Picard-2021 changed the title Feature request divmod/4. Feature request predicate divmod/4. Oct 28, 2022
@Jean-Luc-Picard-2021
Copy link
Author

Prolog systems that have it I found:

  • SWI-Prolog
  • Jekejeke Prolog
  • Dogelog Player (planned)

@Jean-Luc-Picard-2021
Copy link
Author

Not needed anymore, was using (//)/2 and rem/2 explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant