Difference between revisions of "Osiris/API/Integer"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "===== Full Definition(s) ===== * query '''Real'''('''''[in]'''(INTEGER)'''''_R''',''''' [out]'''(REAL)'''''_I''') ===== Description ===== Rounds the real '''_R''' towards zero...")
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
===== Full Definition(s) =====
 
===== Full Definition(s) =====
* query '''Real'''('''''[in]'''(INTEGER)'''''_R''',''''' [out]'''(REAL)'''''_I''')
+
* query '''Integer'''('''''[in]'''(REAL)'''''_R''',''''' [out]'''(INTEGER)'''''_I''')
 
===== Description =====
 
===== Description =====
 
Rounds the real '''_R''' towards zero and returns it as an integer '''_I'''.
 
Rounds the real '''_R''' towards zero and returns it as an integer '''_I'''.
Line 8: Line 8:
 
* '''_I''': The integer value after rounding.
 
* '''_I''': The integer value after rounding.
 
===== Notes =====
 
===== Notes =====
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|Integer]]

Latest revision as of 12:49, 19 August 2018

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