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

Add big_int_of_float #105

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions big_int_Z.ml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ let int64_of_big_int x =

let float_of_big_int = Z.to_float

let big_int_of_float = Z.of_float

let and_big_int = Z.logand

let or_big_int = Z.logor
Expand Down
1 change: 1 addition & 0 deletions big_int_Z.mli
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ val int32_of_big_int : Z.t -> int32
val nativeint_of_big_int : Z.t -> nativeint
val int64_of_big_int : Z.t -> int64
val float_of_big_int : Z.t -> float
val big_int_of_float : float -> Z.t
val and_big_int : Z.t -> Z.t -> Z.t
val or_big_int : Z.t -> Z.t -> Z.t
val xor_big_int : Z.t -> Z.t -> Z.t
Expand Down