Skip to content
Snippets Groups Projects
Commit a85a6e7b authored by Maxime Jacquemin's avatar Maxime Jacquemin
Browse files

[Integer] power_int_positive_int returns an option

This function relies on Z.power_int_positive_int, which can raise the
exception Invalid_argument when dealing with an exponent too big to
produce a valid result in GMP. This exception is now catched and thus
the function produce an option.

Modifications at callsites have been taken care of, and the file
floating_point.ml has been made more human readable.
parent 6ee3fd7a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment