SigServer:SignatureMath: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 43: Line 43:
  min(3, 5);          // Returns 3
  min(3, 5);          // Returns 3
  min(3, 1.2, 5, 5.1); // Returns 1.2
  min(3, 1.2, 5, 5.1); // Returns 1.2
==== mod ====
''number'' mod(''number'' dividend, ''number'' divisor);
Returns the reminder when dividing dividend with divider.
'''Example'''
mod(10, 3); // Returns 1
==== pow ====
''number'' pow(''number'' base, ''number'' exp);
Returns base to the power of exp.
'''Example'''
pow(3, 2); // Returns 9
pow(2, 3); // Returns 8
==== round ====
''number'' round(''number'' value[, ''number'' precision]);
Returns base to the power of exp.
'''Example'''
round(2.4);    // Returns 2
round(2.5);    // Returns 3
round(2.55, 1); // Returns 2.6
==== sqrt ====
''number'' sqrt(''number'' value);
Returns the square root of value.
'''Example'''
sqrt(9); // Returns 3
256

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.