Difference between revisions of "Manuals/calci/GESTEP"

From ZCubes Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
*<math>n</math>  is the number.
 
*<math>n</math>  is the number.
 
*<math>s</math>  is the step to threshold a value.
 
*<math>s</math>  is the step to threshold a value.
 
  
 
==Description==
 
==Description==
 
*This function gives the result in a logical values (0 or 1).  
 
*This function gives the result in a logical values (0 or 1).  
 
*It is used to filter the values.  
 
*It is used to filter the values.  
*In <math>GESTEP(n,s), n</math> is the number  to test against step and <math>s</math> is the step to threshold a value.  
+
*In <math>GESTEP(n,s)</math>, <math>n</math> is the number  to test against step and <math>s</math> is the step to threshold a value.  
 
*Here <math> n </math>  value is required and <math> s </math> is optional.  
 
*Here <math> n </math>  value is required and <math> s </math> is optional.  
 
*When we are not giving the <math> s </math> value, then it will assumed to be zero.  
 
*When we are not giving the <math> s </math> value, then it will assumed to be zero.  
*This function gives the result as 1, <math> n </math> value is greater than or equal to <math> s </math> value, or 0 otherwise.  
+
*This function gives the result as 1, <math> n </math> value is greater than or equal to <math> s </math> value, or <math>0</math> otherwise.  
 
*<math> GESTEP </math> should only be used with numbers.
 
*<math> GESTEP </math> should only be used with numbers.
 
  
 
==Examples==
 
==Examples==

Revision as of 00:37, 24 January 2014

GESTEP(n,s)


  • is the number.
  • is the step to threshold a value.

Description

  • This function gives the result in a logical values (0 or 1).
  • It is used to filter the values.
  • In , is the number to test against step and is the step to threshold a value.
  • Here value is required and is optional.
  • When we are not giving the value, then it will assumed to be zero.
  • This function gives the result as 1, value is greater than or equal to value, or otherwise.
  • should only be used with numbers.

Examples

  1. GESTEP(8,9) = 0
  2. GESTEP(9,8) = 1
  3. GESTEP(0,1) = 0
  4. GESTEP(0,0) = 1
  5. GESTEP(-1,0) = 0
  6. GESTEP(a,b) = Null


See Also

References