What are the minimum/maximum integers in gprolog? Is there a way to reference these numbers without using a "magic number"?
I think these should work:
current_prolog_flag(bounded, X).
current_prolog_flag(min_integer, Y).
current_prolog_flag(max_integer, Z).
bounded
tells you whether your implementation supports arbitrary large integers; if it's false, the min_integer
/ max_integer
calls will fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With