Test function, Short_sub_2, Float_sub_2 – Omega Engineering OME-A826PG User Manual

Page 35: 1 test, Function, 2 float_sub_2, 1 test function, 1 short_sub_2

Advertising
background image

OME-A-826PG Software Manual [Win 95/98/NT]

3.1

TEST Function


3.1.1

SHORT_SUB_2

z

Description :

Compute C=nA-nB in short format, Short=16 bits sign integer.

This function is provided for testing purpose.

z

Syntax :

short SHORT_SUB_2(short nA, short nB);

z

Parameter :

nA :

[

Input

] Short

nB :

[

Input

] Short

z

Return Value :

Return = nA - nB Î Short



3.1.2 FLOAT_SUB_2

z

Description :

Compute C=fA-fB in float format, float=32 bits floating pointer

number. This function is provided for testing purpose.

z

Syntax :

float FLOAT_SUB_2(float fA, float fB)

z

Parameter :

fA

: [

Input

] Double value

fB

: [

Input

] Double value

z

Return Value :

return= fA - fB Î float value



Date: Aug-15-2000 Ver: 2.2 Page 33

Advertising