Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a list of commonly used functions in the code portion of the Editor. If you have any questions about how they operate feel free to email us.

 

This is a table called tbody

this is a table head
Section

This is the first section.

Table Body (tbody)
Table Head (th)
Function nameDescriptionArgument typeReturn typeExampleDefault answerAlternate answer
hws_random(min, max, precision, default)Generates a random numbernumbersstring or doublehws_random(1.00, 5.99, 3, 2.59)2.593.54
roundoff(num, precision)

Rounds off a number

Note: drops trailing zeros

numbersstring or double

roundoff(4.056, 3)

x=4.02 roundoff(x, 2)

4.06

4

 
sigfig(num, precision)Rounds off a number.numbersstring

sigfig(4.056, 3)

x=4.02 sigfig(x, 2)

4.06

4.0