Minor bug (Depending on the situation)

18 views
Skip to first unread message

Tommi Prami

unread,
Oct 7, 2025, 6:13:11 AM (7 days ago) Oct 7
to inno...@googlegroups.com
Hello,

  •  Scripting supports Round(), but it is not in documentation, or I am looking from wrong place: 
  • It will overflow silently, I had something like LInt64 := Round(LargeNumber * 5.372652673);
    • Debugger it and saw that result was negative
    • Therefore I suggest adding something like this
      • function Round64(const AFloatValue: Double): Int64;
Not sure that the Round() needs changes or not, did not try to find how it is defined.

Maybe changing Round() to handle and return the In64 value would be OK too, not sure if it will have side effects or not... 

-tee-

Martijn Laan

unread,
Oct 7, 2025, 6:54:48 AM (7 days ago) Oct 7
to innosetup
Hi,

I will look into adding a proper Round function.

Greetings,
Martijn

Op 7-10-2025 om 12:12 schreef Tommi Prami:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/CABwd-apDDPH%3DJPo7es-ddAa7%2BSyt80vM0rjMzN_pDazD%2BemXGQ%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages