Difference between revisions of "Manuals/calci/GESTEP"
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 | + | *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 23:37, 23 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
- GESTEP(8,9) = 0
- GESTEP(9,8) = 1
- GESTEP(0,1) = 0
- GESTEP(0,0) = 1
- GESTEP(-1,0) = 0
- GESTEP(a,b) = Null