18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

Function<br />

Function<br />

Mnenonic Arguments Mode Description<br />

shl.f e ,e 1 2<br />

Integer Shift e left e positions. Vacated positions<br />

1 2<br />

are filled with zeros.<br />

shr.f e 1<br />

,e 2<br />

Integer Shift e 1<br />

right e 2<br />

positions. Vacated positions<br />

are filled with zeros.<br />

sign.f e Integer Indicates the sign of a real expression.<br />

1 if e > 0<br />

0 if e = 0<br />

-1 if e < 0<br />

sin.f e Real Computes the sine of a real expression given<br />

in radians.<br />

sqrt.f e Real Computes the square root of a real expression;<br />

e > 0.<br />

substr.f s,e 1 ,e 2 Text Sets or returns a substring of a text value;<br />

both a left-handed and right-handed function.<br />

In the left-handed usage, s must be an unmonitored<br />

variable.<br />

s = string, text<br />

e 1<br />

= position, integer<br />

e 2<br />

= length, integer<br />

tan.f e Real Computes the tangent of a real expression<br />

given in radians.<br />

302

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!