/*
 * FreeAdhocUDF - copyright (c) 2004 adhoc dataservice GmbH Peter Mandrella
 * based on FreeUDFLibC - copyright (c) 1999 Gregory Deatz
 * altered 2001 by ADITO Software GmbH Robert Loipfinger
 *
 *  rl = added by / (c) 2000 Robert Loipfinger
 *  pm = added by Peter Mandrella
 *
 *   math_functions.h
 *     Math routines declarations:
 *       convertfrom33 - convert a string (base33) to an integer
 *       convertto33 - convert an integer to base33 string
 *       convertfrombase - convert a string (base<n>) to an integer
 *       converttobase - convert an integer to a base<n> string
 *       converttodollar - convert a double to a dollar string ($xxxx.xx)
 *       doubleabs - get the absolute value of a double
 *  pm   fact - calculate faculty
 *       fixedpoint - convert a double to a string with <n> decimal points
 *  pm   fixedpointlang - versatile double to string conversion; correct rounding
 *       integerabs - get the absolute value of an integer
 *  pm   isdivisibleby - test, if first number multiple of second number?
 *  pm   maxnum - maximum of two numbers
 *  pm   minnum - minimum of two numbers
 *       modulo - perform modulo arithmetic
 *       round - round a double to the nearest integer
 *       truncate - return the integer part of a double
 */

int convertfrom33 PROTO_LIST ((char *));
char * convertto33 PROTO_LIST ((int *));
int convertfrombase PROTO_LIST ((char *, int *, char *));
char * converttobase PROTO_LIST ((int *, int *, char *));
char * converttodollar PROTO_LIST ((double *));
double doubleabs PROTO_LIST ((double *));
double fact PROTO_LIST ((int *));
char * fixedpoint PROTO_LIST ((double *, int *));
char * fixedpointlang PROTO_LIST ((double *, int *, char *, char *));
int integerabs PROTO_LIST ((int *));
double maxnum PROTO_LIST ((double *, double *));
double minnum PROTO_LIST ((double *, double *));
int modulo PROTO_LIST ((int *, int *));
int round PROTO_LIST ((double *));
int truncate PROTO_LIST ((double *));
int isdivisibleby PROTO_LIST ((int*, int*));
