[Pas2js] FormatFloat

Peter Kainz peter.kainz at gmail.com
Sun Jul 7 17:04:35 CEST 2024


Hi guys,

did someone know why
pas.SysUtils.FloatToStr(12.4)
is 12.4
and
pas.SysUtils.FormatFloat( '#0.00', 12.4)
is 24.00

with Lazarus
FormatFloat( '#0.00', 12.4 )
is 12.40

thanks
peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20240707/34af5a6e/attachment.htm>


More information about the Pas2js mailing list