Turning Technologies ExamView User Manual

Page 122

Advertising
background image

ExamView Test Generator

122

Syntax

Description

string right(string x,

int y)

Returns the last y characters of the string argument, x.

EXAMPLE

right("ExamView", 3)

will return "iew"

double round(double x,

int precision)

Rounds the argument, x, to have precision decimal places.

NOTE

If precision is greater than or equal to 10, this function rounds the argument, x, to the nearest
precision.

EXAMPLE

round(3.14159265, 4)

will return 3.1416

round(1492.14, 10)

will return 1490

round(1492.14, 100)

will return 1500

string rtrim(string x)

Trims spaces from the right side of the string argument, x.

EXAMPLE

rtrim(" ExamView ")

will return " ExamView"

string sciens(double x)

Function returns a string representation of the argument, x, in scientific notation.

NOTE

You must be sure to also change the format to Scientific Notation and select the number of decimal
places when formatting the variable.

EXAMPLE

sciens(143948.123)

will return when using 2 decimal places.

turningtechnologies.com/user-guides

Advertising