FloatToStr(f:n:n) problem

  • 1
  • 2
  • Page 2 of 2
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1373
Registered: 03 / 2005
Subject:

Re: FloatToStr(f:n:n) problem

 · 
Posted: 05.10.2017 - 21:21  ·  #9
I will investigate.
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1373
Registered: 03 / 2005
Subject:

Re: FloatToStr(f:n:n) problem

 · 
Posted: 06.10.2017 - 10:00  ·  #10
@Allan As a quick fix while I investigate further, if you add the following line near the top of your code it will disable the latest optimization while I investigate further

Code
{$OPTI NO_OPT_TST}
allan
Benutzer
Avatar
Gender: n/a
Age: 64
Posts: 11
Registered: 10 / 2016
Subject:

Re: FloatToStr(f:n:n) problem

 · 
Posted: 06.10.2017 - 11:34  ·  #11
@Merlin, thanks!
It solves the actual problem I had with real project where comparing floating point numbers gave random results. This FloatToStr was only needed for debugging and also was easy to reproduce!
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1373
Registered: 03 / 2005
Subject:

Re: FloatToStr(f:n:n) problem

 · 
Posted: 06.10.2017 - 13:30  ·  #12
Hi Allan.

I have now fixed the bug. Either you can wait for next update or if you let me know your e-mail via pm I will send you the fix directly.
  • 1
  • 2
  • Page 2 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   78   92 · Page-Gen-Time: 0.022363s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI