Browse thread
[Caml-list] How do I convert 0x hexadecimal integers to decimal integers ?
- Stalkern 2
[
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: | Stalkern 2 <stalkern2@t...> |
| Subject: | [Caml-list] How do I convert 0x hexadecimal integers to decimal integers ? |
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