beautypg.com

Turning Technologies ExamView User Manual

Page 110

background image

ExamView Test Generator

110

sigfig

string sigfig(double x, int numSigFigs, Boolean

forceNumSigFigs)

Creates a string version of the argument, x, that has numSigFigs significant digits. If
forceNumSigFigs is TRUE, then the string returned will have exactly numSigFigs
significant digits (even if the function has to randomly create some digits). If
forceNumSigFigs is FALSE, then the function will return a string that has numSigFigs
significant digits or less.

EXAMPLE

sigfig(12362, 3, FALSE)

will return 12400

sigfig(2.14, 5, TRUE)

will return 2.1400

sigfig(1400, 4, TRUE)

might return 1427

sqrs*

string sqrs(double x)

After reducing the argument, x, to a multiple of a whole number and a radical, it returns a
string representation in the form whole (square root) radical. When displayed, this
function will draw a radical if necessary.

EXAMPLE

sqrs(18)

will return

sqrs(16)

will return 4

sqrs(-8)

will return

sqrs(3.14159)

will return

symbol*

string symbol(string x)

Converts the string argument, x, to the appropriate Symbol character.

NOTE

Once the variable is inserted into a question or narrative, you need to
highlight the variable and change it to Symbol font for it to display
properly.

The following list shows valid arguments to this function. For all other Symbol characters,
use the chr function.

symbol ("<=")

will return "≤"

symbol (">=")

will return "≥"

symbol ("<>")

will return "≠"

symbol ("x")

will return "×"

symbol (".")

will return "▪"

symbol ("/")

will return "٪"

turningtechnologies.com/user-guides