New format/fwrite options
Richard Carlsson
richardc@REDACTED
Wed Mar 27 16:16:54 CET 2002
On 27 Mar 2002, Jouni Rynö wrote:
> and ~B for IO ? (= 10) :-)
Seriously, how about ~B for signed binary and ~b for precision-width
2-complement binary (default precision 32?)
fwrite("~B", [-5]) => -101
fwrite("~.8b", [-5]) => 11111011
fwrite("~.*b", [-5, 8]) => 11111011
/Richard
Richard Carlsson (richardc@REDACTED) (This space intentionally left blank.)
E-mail: Richard.Carlsson@REDACTED WWW: http://www.csd.uu.se/~richardc/
"Having users is like optimization: the wise course is to delay it."
-- Paul Graham
More information about the erlang-questions
mailing list