BASIC PROGRAMMING II (ADVANCED - BUILT-IN FUNCTIONS) _ SS3 NOTES
BASIC BUILT-IN FUNCTIONS
A function is a structure that simplifies a complex operation into a single step. BASIC built-in functions are predefined functions that perform a wide range of operations.
BASIC has several built-in functions that greatly extend its capability. They include the following:
(i) SQR (X) - SQUARE ROOT FUNCTION
(ii) ABS (X) - ABSOLUTE VALUE FUNCTION
(iii) LOG (X) - LOGARITHM FUNCTION
(iv) SIN (X) - SINE FUNCTION
(v) TAN (X) - TANGENT FUNCTION
(vi) RND (X) - RANDOM NUMBER FUNCTION
(vii) EXP (X)- EXPONENT FUNCTION
(viii) ROUND (X,N) - ROUNDS THE NUMBER X TO THE NUMBER OF DIGITS N
(ix) INT (X) - FIND THE INTEGER OF A REAL NUMBER
Comments
Post a Comment