Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

 

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

 
       
       
       
       
  • No labels