[fpc-pascal] Dec2Numb with negative numbers
Roberto P.
padovani.r at gmail.com
Mon Jun 17 00:19:52 CEST 2013
Thanks!
Is there an unsigned alternative?
R.
2013/6/16 Michael Van Canneyt <michael at freepascal.org>
>
>
> On Fri, 14 Jun 2013, Roberto P. wrote:
>
> Hi List,
>> I recently stumbled upon the fact that the Dec2Numb function does not
>> work with negative numbers. Specifically, converting a negative longint
>> returns an empty
>> string.
>>
>> Is that intended or is it a bug?
>> Maybe a base conversion routine should be somehow "aseptic" or anyway
>> independent from the sign.
>>
>
> It is intended, but not documented. I will document it.
> (the same is true for numb2dec)
>
> Michael.
> ______________________________**_________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130617/85390985/attachment.html>
More information about the fpc-pascal
mailing list