Re: sprintf() query
- Posted by petelomax Oct 26, 2017
- 1168 views
_tom said...
in a Phix string, how do I output "hello" as numbers?
pp("hello",{pp_StrFmt,1}) -- shows {104,101,108,108,111}
In Phix, you can also do this:
?("hello"&-1)[1..$-1]
The &-1 auto-expands the string to a dword-sequence (and the () stop it from trying to subscript the -1).