diff options
-rw-r--r-- | Changes | 3 | ||||
-rw-r--r-- | otherlibs/num/ratio.mli | 10 |
2 files changed, 9 insertions, 4 deletions
@@ -90,6 +90,7 @@ Bug Fixes: - PR#5238, PR#5277: Sys_error when getting error location - PR#5301: camlp4r and exception equal to another one with parameters - PR#5309: Queue.add is not thread/signal safe +- PR#5310: Ratio.create_ratio/create_normalized_ratio have misleading names - PR#5311: better message for warning 23 - PR#5313: ocamlopt -g misses optimizations - PR#5316: objinfo now shows ccopts/ccobjs/force_link when applicable @@ -2893,5 +2894,3 @@ Caml Special Light 1.06: ------------------------ * First public release. - -$Id$ diff --git a/otherlibs/num/ratio.mli b/otherlibs/num/ratio.mli index 60c0f66db..408aea9b4 100644 --- a/otherlibs/num/ratio.mli +++ b/otherlibs/num/ratio.mli @@ -13,7 +13,10 @@ (* $Id$ *) -(* Module [Ratio]: operations on rational numbers *) +(** Operation on rational numbers. + + This module is used to support the implementation of {!Num} and + should not be called directly. *) open Nat open Big_int @@ -25,6 +28,8 @@ open Big_int type ratio +(**/**) + val null_denominator : ratio -> bool val numerator_ratio : ratio -> big_int val denominator_ratio : ratio -> big_int @@ -32,8 +37,9 @@ val sign_ratio : ratio -> int val normalize_ratio : ratio -> ratio val cautious_normalize_ratio : ratio -> ratio val cautious_normalize_ratio_when_printing : ratio -> ratio -val create_ratio : big_int -> big_int -> ratio +val create_ratio : big_int -> big_int -> ratio (* assumes nothing *) val create_normalized_ratio : big_int -> big_int -> ratio + (* assumes normalized argument *) val is_normalized_ratio : ratio -> bool val report_sign_ratio : ratio -> big_int -> big_int val abs_ratio : ratio -> ratio |