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.

Appendix B. Functions and Routines<br />

Function<br />

Function<br />

Mnenonic Arguments Mode Description<br />

trang.f e 1<br />

,e 2<br />

,e 3<br />

,e 4<br />

Real Returns a value from a triangular distribution.<br />

e 1 = distribution minimum, real<br />

e 2 = mean of distribution, real<br />

e 3 = distribution maximum, real<br />

e 4 = random number stream, integer<br />

trim.f s,e Text Trims leading and/or trailing blanks from a<br />

string.<br />

s = string, text<br />

e = flag, where<br />

-1 = trim leading blanks<br />

0 = trim leading and trailing blanks<br />

+1 = trim trailing blanks<br />

trunc.f e Integer Returns the truncated integer value of a real<br />

expression.<br />

ttoa.f e Alpha Converts first character of text expression to<br />

alpha.<br />

uniform.f e 1<br />

,e 2<br />

,e 3<br />

Real Returns a uniformly distributed random sample<br />

between a range of values.<br />

e 1<br />

= beginning value, real<br />

e 2<br />

= ending value, real<br />

e 3<br />

= random number stream, integer<br />

upper.f s Text Converts letters in a text string to upper-case.<br />

303

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

Saved successfully!

Ooh no, something went wrong!