* big_int -> int64 @ 2007-08-24 13:52 Christoph Bauer 2007-08-24 14:27 ` [Caml-list] " Jeff Meister 0 siblings, 1 reply; 3+ messages in thread From: Christoph Bauer @ 2007-08-24 13:52 UTC (permalink / raw) To: caml-list Hi, how can i convert a big_int to a int64 and vice versa. Thanks, Christoph Bauer -- LMS Deutschland GmbH - Geschäftsführer: Dr. Ing. Urbain Vandeurzen, Dr.-Ing. Norbert Reimann - Sitz: Kaiserslautern - Registergericht: HRB Kaiserslautern 3706 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] big_int -> int64 2007-08-24 13:52 big_int -> int64 Christoph Bauer @ 2007-08-24 14:27 ` Jeff Meister 2007-08-24 18:53 ` Jon Harrop 0 siblings, 1 reply; 3+ messages in thread From: Jeff Meister @ 2007-08-24 14:27 UTC (permalink / raw) To: Christoph Bauer; +Cc: caml-list I guess you do Int64.of_string (Big_int.string_of_big_int i). Clunky, but should work. On 8/24/07, Christoph Bauer <Christoph.Bauer@lmsintl.com> wrote: > Hi, > > how can i convert a big_int to a int64 and vice versa. > > Thanks, > > Christoph Bauer > -- > LMS Deutschland GmbH - Geschäftsführer: Dr. Ing. Urbain Vandeurzen, Dr.-Ing. Norbert Reimann - Sitz: Kaiserslautern - Registergericht: HRB Kaiserslautern 3706 > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] big_int -> int64 2007-08-24 14:27 ` [Caml-list] " Jeff Meister @ 2007-08-24 18:53 ` Jon Harrop 0 siblings, 0 replies; 3+ messages in thread From: Jon Harrop @ 2007-08-24 18:53 UTC (permalink / raw) To: caml-list 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-24 19:04 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-08-24 13:52 big_int -> int64 Christoph Bauer 2007-08-24 14:27 ` [Caml-list] " Jeff Meister 2007-08-24 18:53 ` Jon Harrop
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox