From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA14738; Thu, 27 Mar 2003 18:13:01 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA14393 for ; Thu, 27 Mar 2003 18:13:00 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from smtp2.cp.tin.it (vsmtp2.tin.it [212.216.176.222]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h2RHCw528600 for ; Thu, 27 Mar 2003 18:12:59 +0100 (MET) Received: from favilla.biomedin.int (212.171.41.25) by smtp2.cp.tin.it (6.5.033) id 3E660875009410AE; Thu, 27 Mar 2003 18:12:57 +0100 Content-Type: text/plain; charset="us-ascii" From: Stalkern 2 Reply-To: stalkern2@tin.it To: caml-list@inria.fr, ocaml_beginners@yahoogroups.com Subject: [Caml-list] How do I convert 0x hexadecimal integers to decimal integers ? Date: Thu, 27 Mar 2003 18:20:34 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200303271820.34803.stalkern2@tin.it> X-Spam: no; 0.00; stalkern:01 scanf:01 ernesto:01 functions:05 decimal:05 color:94 integers:05 hexadecimal:05 converting:05 integer:06 i'd:06 notation:06 256:91 function:09 convert:12 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello to everybody I'd need a function to turn hexadecimal integers like 0xb8f99c ( a Color in hexadecimal notation) to integer 3ples (e.g. `RGB (184*256,249*256,156*256), always a color). Shall I use Scanf functions and then some function converting hexadecimal numbers to decimal? what would this function be? T I A Ernesto ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners