The vgLib.floatingQuotient() system function promotes two numbers to double-precision floating point type, divides the numerator by the denominator, and returns the quotient. If you use V6 exception compatibility (see Using V6 exception compatibility) and the denominator is 0, EGL stores 00000008 in sysVar.errorCode.
vgLib.floatingQuotient() is one of a number of functions maintained for compatibility with earlier versions. New code can use standard EGL operators for these purposes.
HEX fields can be used as both the input and the result fields. HEX(8) corresponds to SMALLFLOAT and HEX(16) corresponds to FLOAT.
vgLib.floatingQuotient(
numerator FLOAT in,
denominator FLOAT in)
returns (result FLOAT)
The following example shows the vgLib.floatingQuotient() function:
myVar01, myVar02, result FLOAT;
myVar01 = 19;
myVar02 = 7;
result = vgLib.floatingQuotient(myVar01,myVar02);
// result = 2.7142857142857144