SigServer:SignatureMath: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 10: Line 10:
  abs(1);  // Returns 1
  abs(1);  // Returns 1
  abs(-1); // Returns 1
  abs(-1); // Returns 1
----


==== ceil ====
==== ceil ====
Line 20: Line 18:
  ceil(1.4); // Returns 2
  ceil(1.4); // Returns 2
  ceil(1.9); // Returns 2
  ceil(1.9); // Returns 2
----


==== floor ====
==== floor ====
Line 30: Line 26:
  floor(1.1); // Returns 1
  floor(1.1); // Returns 1
  floor(1.9); // Returns 1
  floor(1.9); // Returns 1
==== max ====
''number'' max(''number'' value1, ''number'' value2[, ''number'' ...]);
Returns the numerically highest value of the given arguments. At least two arguments are required.
'''Example'''
max(3, 5);          // Returns 5
max(3, 1.2, 5, 5.1); // Returns 5.1
==== min ====
''number'' min(''number'' value1, ''number'' value2[, ''number'' ...]);
Returns the numerically lowest value of the given arguments. At least two arguments are required.
'''Example'''
min(3, 5);          // Returns 3
min(3, 1.2, 5, 5.1); // Returns 1.2
256

edits

Navigation menu

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