New format/fwrite options
Bengt Kleberg
eleberg@REDACTED
Wed Mar 27 10:06:21 CET 2002
> From: "Robert Virding" <robert.virding@REDACTED>
> By popular (:-) request I am adding two new options to format/fwrite for
outputing integers
> in binary and hex, ~b and ~x. There is a small problem though with negative
numbers.
> For how long do you extend the representation with '1'? Seeing we have bignums
there
> is no concept of a word size.
what is wrong with '-'? ie, io:format( "~b", -3 ) => -11
bengt
More information about the erlang-questions
mailing list