Non-decimal radices/Input: Difference between revisions
m
→{{header|Phix}}
m (forgot decimal) |
|||
Line 712:
{{255}}
</pre>
Note the need for %f (if you want to get an atom rather than an integer back), and double braces (it's a list of potentially several different possible result sets/interpretations), and that scanf() works best with a few literals (esp spaces).
Finally note that while you can use "#DEADBEEF" (without the quotes, ie a fairly big hex number) in a source code file, the compiler will choke on "DEADBEEF", and so too will scanf().
=={{header|PHP}}==
|