Math functions: QLIB v2.00 currently has the following ANSI C compatible math functions: f_abs() ;same as fabs() except renamed due to assembler reasons ;although there is a ; #define fabs f_abs ;in the qlib.h file so C program will have no problem ;ASM programs must use f_abs() sin(), cos(), tan() ceil(), floor() log(), log2(), log10() pow() Notes: - all math functions use double precision only. You may use float in C programs but you must use REAL8 in ASM because callp will not expand a float into a real8 (unless you use INVOKE which sux) - the value returned may be returned in the CPU regs or on top of the FPU stack depending on which math LIB is used. The Watcom LIB returns doubles as EAX:EDX The Borland LIB returns doubles on top of the FPU stack (best) - All BAT files by default use the Borland LIB except for WC2EXE.BAT (of course)