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

Next revision
Previous revision
Next revisionBoth sides next revision
rounding [2017/03/15 16:39] – created korshunrounding [2017/04/15 17:47] korshun
Line 18: Line 18:
 ^  -5.5|        -5|        -6|       -5|        -5| ^  -5.5|        -5|        -6|       -5|        -5|
  
-Every rounding mode is available as two functions. The ones with the "iin the name return an integer, while the ones without the "i" return a fixed.+Every rounding mode is available as two functions. The ones with the ''i'' prefix in the name return an integer, while the ones without return a fixed-point number: 
 + 
 +^ Mode  ^ as fixed ^ as int ^ 
 +^ floor | [[functions:floor|floor()]] | [[functions:ifloor|ifloor()]] | 
 +^ ceil  | [[functions:ceil|ceil()]] | [[functions:iceil|iceil()]] | 
 +^ round | [[functions:round|round()]] | [[functions:iround|iround()]] | 
 +^ trunc | [[functions:trunc|trunc()]] | [[functions:itrunc|itrunc()]] |
  
rounding.txt · Last modified: 2019/08/26 21:02 by korshun