Divr: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
Created page with "'''divr''' <dividend> <divisor> '''divru''' <dividend> <divisor> '''divrd''' <dividend> <divisor> Can be used to round the values of a division. '''divr''' divides the valu..."
 
(No difference)

Latest revision as of 07:02, 20 February 2020

divr <dividend> <divisor>

divru <dividend> <divisor>

divrd <dividend> <divisor>

Can be used to round the values of a division. divr divides the value of a gamevar and rounds it (0.5 equals 1). divru rounds up (aka away from zero). divrd rounds down (aka towards from zero).

divrd is identical to div.

For reference, shiftr rounds down positive values and rounds up negative values (aka towards infinite negativity).