ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:safediv

Differences

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

Link to this comparison view

Next revision
Previous revision
functions:safediv [2017/03/13 17:33] – created korshunfunctions:safediv [2017/03/17 17:41] (current) – [Description] korshun
Line 1: Line 1:
 ====== SafeDiv ====== ====== SafeDiv ======
-{{tags>math safe_division}}+{{tag>math todo}}
 ''int SafeDiv(int num, int den)'' ''int SafeDiv(int num, int den)''
  
Line 6: Line 6:
 Performs safe division: if denumerator is 0, the result is 0 and no error happens. Performs safe division: if denumerator is 0, the result is 0 and no error happens.
  
-Integer version, for fixed-point numbers see [[function:SafeFixedDiv|SafeFixedDiv()]].+Integer version, for fixed-point numbers see [[SafeFixedDiv]].
  
 ===== Examples ===== ===== Examples =====
functions/safediv.1489419233.txt.gz · Last modified: 2017/03/13 17:33 by korshun