English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-08-24 (19:04)
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