[Lazarus] formatfloat negative zero (-0)

Dmitry Boyarintsev skalogryz.lists at gmail.com
Wed Jul 9 15:19:46 CEST 2014


Hello Andrea,

I thing it would worth mentioning Delphi's behavior?
And the bug report is also missing a patch to fix the problem :)

thanks,
Dmitry


On Wed, Jul 9, 2014 at 8:21 AM, Andrea Mauri <andrea.mauri.75 at gmail.com>
wrote:

>
>
> Il 09/07/2014 13:44, Lukasz Sokol ha scritto:
>
>> As a matter of fact, I can... on Turbo Delphi 2006 (free edition)...
>>
>> and the behavior is as you said it should be.
>>
>> (i.e. FormatFloat eats the minus if the content of the edit is smaller
>> than expected by the format string)
>>
>> With FormatFloat format string '0.###' :
>>
>> Input: -0.001     Output: -0.001
>> Input: -0.0001    Output: 0.000
>>
>> So it_is_  not the same as Lazarus/FPC has;
>>
>>
>> Guess it's time to call to the bugtracker then...
>>
>> -L.
>>
>
> Ok. Reported to the bugtracker, ID 0026465.
> Thanks,
> Andrea
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140709/2b418495/attachment-0003.html>


More information about the Lazarus mailing list