[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Andrew Gacek <andrew.gacek@g...> |
| Subject: | Re: [Caml-list] how to print (or cast) an integer |
You can do print_int (x+y) ;; or Printf.printf "%d" (x+y) ;; -Andrew On Wed, Aug 6, 2008 at 9:08 AM, Ben Aurel <ben.aurel@gmail.com> wrote: > hi > > again a noob question > > -- > 1 let x = 1 and y = 2;; > 2 > 3 x + y ;; > -- > > how can I print the result on line 3? Printf.printf? I can't find a > solution based on the docu > http://caml.inria.fr/pub/docs/manual-ocaml/libref/Printf.html > > thanks > ben > > _______________________________________________ > 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 >