[fpc-pascal] Dec2Numb with negative numbers

Michael Van Canneyt michael at freepascal.org
Sun Jun 16 18:59:41 CEST 2013



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.



More information about the fpc-pascal mailing list