Function name | Description | Argument type | Return type | Example | Default answer | Alternate answer | hws_random(s) |
---|
randomStep(min,max, precisionstep, defaultdef) | Generates a random number | numbers | string or double | hws_randomrandomStep(1.00, 5.99, 1, 3, 2.59) | 3 | 2.59 | 3.54 | 1, 2, 4, 5 | roundoff(num, precision) | Rounds off a number Note: drops trailing zeros | numbers | string or double | roundoff(4.056, 3) x=4.02 roundoff(x, 2) | 4.06 4 | | sigfig(num, precision) | Rounds off a number. | numbers | string | sigfig(4.056, 3) x=4.02 sigfig(x, 2) | 4.06 4.0 | | | | | | | reducedFrac(a,b) | Reduces a/b to simplest form | int or double | char* | reducedFrac(12,6) | 2 | | | | | | | | | | | | | | | | | | | | | | |
|