Osiris/API/Integer

From Divinity Engine Wiki
Revision as of 12:49, 19 August 2018 by Tinkerer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query Integer([in](REAL)_R, [out](INTEGER)_I)
Description

Rounds the real _R towards zero and returns it as an integer _I. Functions as a cast from one to the other.

Return Values
  • Success/Failure: Never fails.
  • _I: The integer value after rounding.
Notes
  • Direct casts between Real and Integer do not work in Osiris.
See Also