Basic30 Language Reference
Library Functions

Table of Contents


Basic30 Library
These functions are in the link time library Basic30.a found in the libs directory.

String Functions
appendC Append a character to the end of a string
Len Return the length of a string as a uInteger
lPad Place characters to the left side of a string until a given length is met.
ui2a Convert a uInteger into an ascii string

 

Math Library
These functions are in the link time library libm.a which is freely available from the Microchip website.

Basic Functions
modsf3 Return the remainder of the division of a 32 bit floating point value by another
Advanced Functions
abs Return the absolute value
acos Return the arc cosine of a value
asin Return the arc sine of a value
atan Return the arc tangent of a value
atan2f Return arc tangent of y/x
ceil  
cos Return the cosine of a value
cosh Return the hyperbolic cosine of a value
exp  
fabsf Return the absloute value of a value
float Return the floating point version of a value
floor  
fmodf Return the remainder of a division
int Return the integer portion of a value
ldexpf Return x*(2^y)
log Return the natural log of a value
log10 Return the 10 based log of a value
powf Return x to the power of y
sin Return the sine of a value
sinh Return the hyberbolic sine of a value
sqrt Return the square root of a value
tan Return the tangent of a value
tanh Return the hyperbolic tangent of a value