Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

$EVALUATE

  • Last UpdatedJan 05, 2026
  • 1 minute read

Syntax

$EVALUATE (Expression)

Evaluates an expression and prints the result. Basically operates as an on-line calculator. The following operators and functions are currently incorporated:

Precedence

Symbol

Description

1

!

or

2

&

and

3

=

equal to

3

>

greater than

3

<

less than

3

<>

not equal to

3

>=

greater than or equal to

3

<=

less than or equal to

4

+

add

4

-

subtract

5

*

multiply

5

/

divide

6

-

unary minus

7

^

raise to the power of

8

COS(x)

cosine

)

8

SIN(x)

sine

)

8

TAN(x)

tangent

)

All angles are in radians

8

ACOS(x)

arc cosine

)

8

ASIN(x)

arc sine

)

8

ATAN(x)

arc tangent

)

8

EXP(x)

exponential

8

LOG(x)

natural logarithm

8

LOG10(x)

common logarithm

8

SQRT(x)

square root

8

INT(x)

truncate to integer for example, INT(2.5) =2

8

MINT(x)

round to nearest integer for example,. MINT(2.3) = 2, MINT (2.6) = 3

8

EQS(str1,str2)

character string comparison. str1 & str2 must be valid character variables or character constants. for example, EQS ("YES", REPLY)

Operators are evaluated in the order of their precedence. When two or more operators of equal precedence appear in sequence then they are evaluated in a left-to-right order. Parenthesis that means, '(' and ')', can be used freely to alter or clarify the expression evaluation order.

 for example,

$EVALUATE width * height

$EVALUATE total + (width * height)

$EVALUATE (total + width) * height

$EVALUATE COS(theta)

$EVALUATE EQS(name1,name2)

$EVALUATE EQS(name1,"FRED")

$EVALUATE EQS(name1," ") n.b. test for blank

TitleResults for “How to create a CRG?”Also Available in