Difference between revisions of "Sign"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>sign</c> returns -1 for negative numbers, 1 for positive numbers, and 0 for zero. === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !! Meaning...")
 
 
Line 1: Line 1:
 
<c>sign</c> returns -1 for negative numbers, 1 for positive numbers, and 0 for zero.
 
<c>sign</c> returns -1 for negative numbers, 1 for positive numbers, and 0 for zero.
 
  
 
=== Arguments ===
 
=== Arguments ===

Latest revision as of 16:06, 17 March 2020

sign returns -1 for negative numbers, 1 for positive numbers, and 0 for zero.

Arguments

Parameter Name Default Value Meaning
x number number to get the sign of

Example

sign(-42.6)		// returns -1