Difference between revisions of "Manuals/calci/ENFORCENEGZEROPOS"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div style="font-size:30px">'''ENFORCENEGZEROPOS(Number)'''</div><br/> *<math>Number</math> is any real number. ==Description== *This function converts or enforces the given ...")
 
Line 4: Line 4:
 
==Description==
 
==Description==
 
*This function converts or enforces the given number or set of numbers to positive integer value.
 
*This function converts or enforces the given number or set of numbers to positive integer value.
 +
*In <math>ENFORCENEGZEROPOS(Number)</math>,<math>Number</math> is any real number.
 
*Integer is the number without any decimal or fractional part but it can be the natural number with positive or negative sign.
 
*Integer is the number without any decimal or fractional part but it can be the natural number with positive or negative sign.
 +
*Generally Positive integer number is also called natural numbers or counting numbers.
 
*If the Number is positive, it is retained as positive only.
 
*If the Number is positive, it is retained as positive only.
 
*If the Number is negative, it is converted in to positive  number.
 
*If the Number is negative, it is converted in to positive  number.
 
*Number "zero" is natural number, neither positive nor negative.
 
*Number "zero" is natural number, neither positive nor negative.
 
*We can use the argument as result of any function.
 
*We can use the argument as result of any function.
 +
  
 
==Examples==
 
==Examples==

Revision as of 13:40, 26 September 2017

ENFORCENEGZEROPOS(Number)


  • is any real number.

Description

  • This function converts or enforces the given number or set of numbers to positive integer value.
  • In , is any real number.
  • Integer is the number without any decimal or fractional part but it can be the natural number with positive or negative sign.
  • Generally Positive integer number is also called natural numbers or counting numbers.
  • If the Number is positive, it is retained as positive only.
  • If the Number is negative, it is converted in to positive number.
  • Number "zero" is natural number, neither positive nor negative.
  • We can use the argument as result of any function.


Examples

  1. ENFORCENEGZEROPOS(90) = 90
  2. ENFORCENEGZEROPOS(-45) = 45
  3. ENFORCENEGZEROPOS(12.78) = 12
  4. ENFORCENEGZEROPOS(-821.89) = 821

See Also

References