Miscellaneous functions

#include <AB_Math.bas>

fix( x)        ' return integer value of the SINGLE x

floor( x )     '  return integer <= x

ceil( x )      '  return integer >= x

powi(x, p)   '  returns x raised to INTEGER p power

round( x )   '   returns integer value closest to x


Part of a user contributed library that computes the standard trigonometric functions.


#include <AB_Math.bas>

for i= 0 to 10
   print i,powi(2.345, i)
next i


See also