ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:round

Differences

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

Link to this comparison view

Next revision
Previous revision
functions:round [2017/03/15 16:30] – created korshunfunctions:round [2019/08/26 21:04] (current) – removed korshun
Line 1: Line 1:
-====== round ====== 
-{{tag>math rounding}} 
-''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 ===== 
-<code> 
-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 
-</code> 
functions/round.1489588230.txt.gz · Last modified: 2017/03/15 16:30 by korshun