ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:safefixeddiv

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
functions:safefixeddiv [2017/03/13 17:36] korshunfunctions:safefixeddiv [2017/03/17 17:41] (current) – [Description] korshun
Line 1: Line 1:
 ====== SafeFixedDiv ====== ====== SafeFixedDiv ======
-{{tag>math logic todo}}+{{tag>math todo}}
 ''fixed SafeFixedDiv(fixed num, fixed den)'' ''fixed SafeFixedDiv(fixed num, fixed 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.
  
-Fixed-point version, for integers see [[functions:SafeDiv|SafeDiv()]].+Fixed-point version, for integers see [[SafeDiv]].
  
 ===== Examples ===== ===== Examples =====
functions/safefixeddiv.1489419403.txt.gz · Last modified: 2017/03/13 17:36 by korshun