
F. FLOATING-POINT OPERATION LIBRARY
B–61863E–1/06
APPENDIX
520
[Function name]
pl_fmul2
[Description]
Multiplies floating-point numbers.
The number of decimal places can be specified.
[Format]
typedef struct {
long long_value ; /* number */
char dec_point ; /* position of decimal point */
} F_FLOAT ;
F_FLOAT x, y, ans ;
unsinged char f ; /* the number of decimal places */
short ret ;
ret = pl_fmul2( &x, &y, &ans, f ) ;
[Input]
x floating point data
y floating point data
f the number of decimal places
[Output]
ans floating point data (calculation result)
[Result]
See completion codes in Section F.4.
[Remarks]
For details on the data format, see the previous section on data
formats.