MetroCad USA
MATH Functions
ADDITION:
(+ 5.65 7.0) adds and returns 12.65. (+ 2 3 4 5) adds 2, 3, 4 and 5 together and
returns 14
SUBTRACTION:
(- 10.50 2.35) subtracts and returns 8.15. (- 10 8) subtracts 8 from 10and returns 2
MULTIPLICATION:
(* 4 7) multiplies 4 by 7 and returns 28. (* 3 6 7.5 2.1) multiplies all numbers and
returns 283.50
DIVISION:
(/ 10 5) divides 10 by 5 and returns 2 (/ 10.0 2.5) divides 10 by 2.5 and returns 4.0.
ABSOLUTE VALUE:
(abs -3.56) returns the absolute value 3.56.
SQUARE ROOT:
(sqrt 16) evaluates the square root of 16 and returns 4. (sqrt 5) evaluates the square
root of 5 and returns 2.236.
Example functions page
Back Home