Fraction functions – Turning Technologies ExamView User Manual
Page 105
![background image](/manuals/742833/105/background.png)
ExamView Test Generator
105
Fraction Functions
ExamView Test Generator provides you with numerous fraction functions to use when defining variables, conditions, and user-
defined functions.
fracs*
string fracs(double numer, double denom)
After reducing the fraction numer / denom, this function will return a string as either a
whole number, or a fraction in the form "numer/denom". When displayed, this function will
draw a stacked fraction if necessary. If denom is 0, the function will return "0".
EXAMPLE
fracs(22, 6)
will return
fracs(22, 11)
will return 2
mixfracs*
string mixfracs(double numer, double denom)
After reducing the fraction numer / denom, this function will return a string as either a
whole number, or a fraction in the form "whole/numer/denom". When displayed, this
function will draw a stacked fraction if necessary. If denom is 0, the function will return
"0".
EXAMPLE
mixfracs(22, 6)
will return
mixfracs(2, 6)
will return
rfracs*
string rfracs(double numer, double denom)
Reduces the fraction numer / denom. When displayed, this function will always draw a
ratio in stacked fraction form. If denom is 0, the function will return "0".
EXAMPLE
rfracs(22, 6)
will return
rfracs(22, 11)
will return
sfracs*
string sfracs(double numer, double denom)
After reducing the fraction numer / denom, this function will return a string as either a
whole number, or a fraction in the form "numer/denom". When displayed, this function will
draw a small stacked fraction if necessary. If denom is 0, the function will return "0".
EXAMPLE
sfracs(22, 6)
will return
sfracs(22, 11)
will return 2
turningtechnologies.com/user-guides