Math functions for SketchUp Dynamic Components
Function | Description | Examples |
|---|---|---|
ABS(number) | ABS returns the absolute value of a number. | Example: |
CEILING(number, significance) | CEILING rounds a number to the nearest integer or multiple of significance. The significance argument is the value whose multiple of ten is the value to be rounded up (.01, .1, 1, 10, etc.). | Example: |
DEGREES(number) | DEGREES converts a number from radians to degrees. | Example: |
EVEN(number) | EVEN rounds a number up to the nearest even integer. | Example: |
EXP(number) | EXP returns e raised to the power of the number. | Example: |
FLOOR(number, significance) | FLOOR rounds a number down to the nearest multiple of significance. | Example: |
INT(number) | INT rounds a number down to the nearest integer. | Example: |
ISEVEN(number) | ISEVEN returns TRUE if the number is an even integer, or FALSE if it is odd. If the number is not an integer, ISEVEN evaluates only its integer part. | Example: |
ISODD(number) | ISODD returns TRUE if the number is an odd integer, or FALSE if it is even. If the value is not a number, ISODD evaluates only the integer part of the number. | Example: |
LN(number) | LN returns the natural logarithm of a number, using the constant e as its base. | Example: |
LOG10(number) | LOG10 returns the base-10 logarithm of a number. | Example: |
ODD(number) | ODD rounds a number up to the nearest odd integer. | Example: |
PI() | PI returns the value of PI to fourteen decimal places. | |
RADIANS(number) | RADIANS converts a number from degrees to radians. | Example: |
RAND() | RAND returns a random number between 0 and 1. | Example: |
RANDBETWEEN(bottom, top) | RANDBETWEEN returns a whole number between the bottom and top numbers. | Example: =RANDBETWEEN(1,3) |
ROUND(number, count) | ROUND uses standard mathematical rounding to round a number to a specified number of decimal places. The optional count argument sets the number of places. If count is negative, ROUND rounds only the whole number portion. | Example: =ROUND(1.12789,2) |
SIGN(number) | SIGN returns the sign of a number. It returns 1 for a positive number, -1 for a negative number, and 0 for zero. | Example: |
SQRT(number) | SQRT returns the positive square root of a number. The number must be positive. |