ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:round

Table of Contents

round

fixed round(fixed x)

Description

Returns x rounded to the nearest integer as a fixed-point number.

See the article on Rounding for all rounding modes.

Examples

round(2.3) -> 2.0
round(3.8) -> 4.0
round(5.5) -> 6.0
round(-2.3) -> -2.0
round(-3.8) -> -4.0
round(-5.5) -> -5.0
functions/round.1489588230.txt.gz ยท Last modified: 2017/03/15 16:30 by korshun