I know that #xdeadbeef lets me input in hex, but is there something like C's fprintf(stderr, "%x"); ?
Thanks!
Afficher les réponses par date
On Monday, June 22, 2009 at 19:57:57 (-0700), lowly coder wrote:
I know that #xdeadbeef lets me input in hex, but is there something like C's fprintf(stderr, "%x"); ?
number->string can take the output base as argument. So to write a number in hex, you'd do something like that :
(display (number->string n 16))
Vincent