ibase and obase



Am 20 Jun 2006 um 11:57 hat Stavros Macrakis geschrieben:

>     Here are examples of how you could use a locally-bound 
>     ibase: 
>     
>     block([ibase:2],readonly("Binary number: "));
>     Binary number: 1010101010;
>          682
> 
>  load("eval_string")$
>  block([ibase:2],eval_string("1011^111")); 
>      19487171
> 
>  inbase(str,base):=block([ibase:base],parse_string(str))$
>  inbase("100",16) => 256
> 
> Hope this helps.

Yes, it does.
Thank you Stavros. That is what I was looking for.
Volker