Version française
Home     About     Download     Resources     Contact us    
Browse thread
how to print (or cast) an integer
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ben Aurel <ben.aurel@g...>
Subject: how to print (or cast) an integer
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