I had to insert a value of “100.0000000000001” before finding a level that convert.exe handled. I have an older version of Delphi on my own test machine and tried a few other conversions, such as adding an additional “1” or altering the last 0 as a “1” in your example, and the command line convert fails to catch both of these at this precision level. We're investigating the difference in behavior between Windows and MacOS, which appears to be a limitation if using Doubles in forms on MacOS.įor the difference in precision, BC4's internal conversion is using the same code as (a slightly older) convert.exe. Load and in a Beyond Compare comparison: they should be the same, but are different. ![]() Load Example.dfm and in a Beyond Compare comparison: they should be the same.Ģ. The difference is hard to see, but the Beyond Compare converted text misses one zero at the end of the ValAsFloat line.ġ. ![]() Object MyObject: TMyObject Left = 1 Top = 2 ValAsFloat = 100.000000000000000000 endīeyond Compare (at least the Windows 圆4 Version 4.2.9 (build 23626) the same version on Mac refuses to convert binary dfm files) gets the conversion wrong and convert the binary to this text, then compares: ![]() copy /y Example.dfm
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |