[Gambas-user] An utility component for Gambas

Benoît Minisini gambas at ...1...
Mon Dec 1 21:45:52 CET 2014


Le 01/12/2014 21:29, Tobias Boege a écrit :
> On Mon, 01 Dec 2014, Lewis Balentine wrote:
>>   >> Octal is normally not needed with Gambas. Do you have any use of
>> that? <<
>>
>> Neither is "binary" best I can tell. It is still convenient to have
>> these tools available. One may not always be dealing with numbers
>> originating in Gambas or output targeting Gambas.
>>
>> Hex$(), Dec$(), Oct$(), Bin$()
>>
>
> Why not just mirror strtol() from the C library to Gambas then? It does
> these things for all bases from 2 to 36.
>

Because strtol wants a zero-terminated string.

-- 
Benoît Minisini




More information about the User mailing list