ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:abs

Table of Contents

abs

Description

Returns the absolute value of x.

abs(INT_MIN) returns INT_MIN, not INT_MAX.

Examples

abs( 2.1) -> 2.1
abs(-2.1) -> 2.1
abs( 123) -> 123
abs(-123) -> 123
functions/abs.txt · Last modified: 2017/04/17 15:13 by korshun