Turning Technologies ExamView User Manual
Page 109

ExamView Test Generator
109
range
double range(double x, double y, double increment {optional})
Returns a pseudo-random number in the range x to y, inclusive. If the optional argument,
increment, is included, the function will only select values in the given range that are
offset from the lower limit by increment.
NOTE
If increment is in the form .1, .01, .001, etc., then the result will
always have the same number of decimal places as the increment.
Also, if x is less than zero, and y is greater than zero, and an
increment is provided, then the value 0 will never be returned by the
function.
round
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
sciens*
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.
sgns
string sgns(double x)
If the argument, x, is less than zero, this function returns "-". Otherwise it returns "+".
turningtechnologies.com/user-guides