Initializing help system before first use

getrealvalue

getrealvalue


Purpose
Retrieve a floating point value held within a jvmobject
Synopsis
function getrealvalue(obj:jvmobject) : real
Argument
obj 
The object reference to query, which may be any subclass of java.lang.Number
Return value
The real value held within the Java object
Further information
1. If the reference within the jvmobject is null, calling this function will cause the model to immediately terminate with an error. You can use getisnull to check the object reference is set before calling this.
2. If the jvmobject is not a subclass of java.lang.Number, calling this function will cause the model to immediately terminate with an error. You can use getclass to check the object reference type before calling this.
Related topics