caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* sprintf-Bug?
@ 2007-02-04  1:00 Oliver Bandel
  2007-02-04  1:11 ` [Caml-list] sprintf-Bug? Jonathan Roewen
  0 siblings, 1 reply; 9+ messages in thread
From: Oliver Bandel @ 2007-02-04  1:00 UTC (permalink / raw)
  To: caml-list

Hello,

this I explored:

# let hex_of_byte b = Printf.sprintf "%02s" (Printf.sprintf "%0X" b);;                                        
val hex_of_byte : int -> string = <fun>
# hex_of_byte 12;;                                                                                            
- : string = " C"

Shouldn't the result be "0C" ?!
(I'm using OCaml 3.09.3.)


Ciao,
  Oliver


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20070204020819.B999DBC6F@yquem.inria.fr>]

end of thread, other threads:[~2007-02-04 12:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-04  1:00 sprintf-Bug? Oliver Bandel
2007-02-04  1:11 ` [Caml-list] sprintf-Bug? Jonathan Roewen
2007-02-04  1:51   ` Oliver Bandel
2007-02-04  1:55     ` Jonathan Roewen
     [not found]     ` <45C53E45.1080109@rftp.com>
2007-02-04  2:08       ` Oliver Bandel
2007-02-04  2:11         ` Jonathan Roewen
2007-02-04 12:43           ` Oliver Bandel
2007-02-04 10:41     ` Christophe TROESTLER
     [not found] <20070204020819.B999DBC6F@yquem.inria.fr>
2007-02-04 10:04 ` David Allsopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).