Hi Tobias
I'm sorry if I haven't completely understood your request (perhaps
you're asking Benoit for a function built in to Gambas?) but I have here
some code I wrote to help me do arbitrary conversions of a number in any
base to any other base (well up to base 36 anyway... then I ran out of
digi
oops,
make this comma in the for loop head a semicolon...
> /*
>* STR: I string containing symbols
>* AL: I alphabet to put symbols in order
>* RET: O result in integer format
>* return value: O number of symbols put into the integer
>*/
> char stoi_
hi,
i haven't found any function to convert a string to an integer with this
string containing signs of an arbitrary number base. won't it be useful?
this is a piece of code i once wrote for this purpose in c:
/*
* STR: I string containing symbols
* AL: I alphabet to put s