diff options
Diffstat (limited to 'stdlib/int32.mli')
-rw-r--r-- | stdlib/int32.mli | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stdlib/int32.mli b/stdlib/int32.mli index 249fa23db3..19d7897a22 100644 --- a/stdlib/int32.mli +++ b/stdlib/int32.mli @@ -135,6 +135,11 @@ external of_string : string -> int32 = "caml_int32_of_string" a valid representation of an integer, or if the integer represented exceeds the range of integers representable in type [int32]. *) +val of_string_opt: string -> int32 option +(** Same as [of_string], but return [None] instead of raising. + @since 4.05 *) + + val to_string : int32 -> string (** Return the string representation of its argument, in signed decimal. *) |