Harold Chan
Harold Chan

Reputation: 809

How to prevent io:format from outputting its ASCII characters representation?

I have the following line:

io:format("~p~n",[<<40,45,50,51>>]).

It will outout

<<"(-23">>

How can I force it to print as <<40,45,50,51>> ?

Upvotes: 2

Views: 207

Answers (1)

ravnur
ravnur

Reputation: 2852

   > io:format("~w~n",[<<40,45,50,51>>]).
   <<40,45,50,51>>

Here is controls sequences for output.

Upvotes: 4

Related Questions