Osiris/API/Integer: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
Direct casts between Real and Integer do not work in Osiris.
Direct casts between Real and Integer do not work in Osiris.
===== See Also =====
===== See Also =====
* [[Osiris/API/Integer]]
* [[Osiris/API/Real]]
    
    
[[Category:Osiris Queries]]
[[Category:Osiris Queries]]

Revision as of 12:52, 14 November 2017

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