Version française
Home     About     Download     Resources     Contact us    
Browse thread
big_int -> int64
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] big_int -> int64
On Friday 24 August 2007 15:27:14 Jeff Meister wrote:
> I guess you do Int64.of_string (Big_int.string_of_big_int i). Clunky,
> but should work.

You could go via Num and pattern match for Int to catch the most common case 
of small 31- or 63-bit ints.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?e