Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

Bug in FormatFloat when running in 64-bit - Drops "e" at end of format string

$
0
0

Delphi XE7 summer and winter hotfixes applied. Format float will drop a trailing "e" in the format string when running in 64-bit mode. Create a new project, drop a button on the form and in the OnClick event of the button insert the following code:

  ShowMessage(FormatFloat(',0.00 Balance', 12345.1));

Running in 32-bit works as expected but when run in 64-bit the last "e" in the word Balance will be lost. (see below example)

 

64bit result of formatfloat


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>