ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


rounding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rounding [2019/04/20 03:15]
korshun [Rounding functions in ACSUtils]
rounding [2019/04/20 20:12] (current)
korshun [Rounding]
Line 3: Line 3:
 ACSUtils provides a full set of functions to round fixed-point numbers to integers. ACSUtils provides a full set of functions to round fixed-point numbers to integers.
  
-<note important>​Current GZDoom provides built-in functions [[zdoom>​Floor_(ACS_function)|floor]],​ [[zdoom>​ceil]] and [[zdoom>​round]],​ but these functions aren't available in Zandronum 3.0 **silently return 0** there, because all unimplemented built-in ACS functions return 0.+<note important>​Current GZDoom provides built-in functions [[zdoom>​Floor_(ACS_function)|floor]],​ [[zdoom>​ceil]] and [[zdoom>​round]],​ but these functions aren't available in Zandronum 3.0 and **silently return 0** there, because all unimplemented built-in ACS functions return 0.
  
 Before using ACSUtils, rename either the built-in functions (by editing ''​zspecial.acs''​) or the ACSUtils functions (by editing ''​acsutils.acs''​) to something else. Otherwise, ACSUtils won't compile. Before using ACSUtils, rename either the built-in functions (by editing ''​zspecial.acs''​) or the ACSUtils functions (by editing ''​acsutils.acs''​) to something else. Otherwise, ACSUtils won't compile.
rounding.txt ยท Last modified: 2019/04/20 20:12 by korshun