Non-decimal radices/Input: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 587: | Line 587: | ||
println("String $txt in base $base is $base10 in base 10") |
println("String $txt in base $base is $base10 in base 10") |
||
end |
end |
||
</lang> |
|||
If not specify the base it will figure out the base from the prefix |
|||
<lang julia> |
|||
@show parse(Int, "123459") |
@show parse(Int, "123459") |
||
@show parse(Int, "0xabcf123") |
@show parse(Int, "0xabcf123") |