Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

potential Dec2Numb bug

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roberto P.

Dear List,

I recently had some crashes in a program of mine, whose cause I was able to identify in a potential bug of the Dec2Numb function....or at least, in an undocumented feature.

Specifically, if Dec2Numb is passed a negative number, it returns an empty string.

It sounds somehow illogical to me, is there an explanation for this behaviour?

bye,

R.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130614/189f9dd9/attachment.html>

Reply by email

Reinier Olislagers
to Roberto P.
Roberto P. wrote 5 lines
Dear List, I recently had some crashes in a program of mine, whose cause I was able to identify in a potential bug of the Dec2Numb function....or at least, in an undocumented feature.

You're posting on the Lazarus list while dec2numb seems to be an FPC function in strutils... Perhaps posting this on the FPC list is a better idea. Looking at the help for dec2numb though it doesn't mention negative numbers are not allowed, so I'd just raise a bug report for FPC (specifying FPC, OS version, preferably a sample program attached to the report etc)

Reply by email

Roberto P.
to Reinier Olislagers

oops, reposted.

2013/6/14 Reinier Olislagers

Show quoted text 21 lines
On 14-6-2013 12:39, Roberto P. wrote: > Dear List, > > I recently had some crashes in a program of mine, whose cause I was able > to identify in a potential bug of the Dec2Numb function....or at least, > in an undocumented feature. You're posting on the Lazarus list while dec2numb seems to be an FPC function in strutils... Perhaps posting this on the FPC list is a better idea. Looking at the help for dec2numb though it doesn't mention negative numbers are not allowed, so I'd just raise a bug report for FPC (specifying FPC, OS version, preferably a sample program attached to the report etc) -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130614/5d824007/attachment.html>

Reply by email