Difference between revisions of "Manuals/calci/ENFORCETYPE"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div style="font-size:30px">'''ENFORCETYPE (Nature,Number)'''</div><br/> *<math>Nature</math> is any type. *<math>Number</math> is any real number. ==Description== *This func...")
 
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
*<math>Number</math> is any real numbers.
 
*<math>Number</math> is any real numbers.
 
*Here Nature is indicating following Types:  
 
*Here Nature is indicating following Types:  
#Integer
+
#Integer
#Natural
+
#Natural
#Negative
+
#Negative
#Negative Integer
+
#Negative Integer
#Negzeropos
+
#Negzeropos
#Positive
+
#Positive
#Positive Integer  
+
#Positive Integer  
#Zero.
+
#Zero.
 
*When the given is a negative decimal number and the given type is Positive Integer then the result shows the number in a Positive integer value.
 
*When the given is a negative decimal number and the given type is Positive Integer then the result shows the number in a Positive integer value.
 
*In the same way the given numbers are enforcing according to the given type.
 
*In the same way the given numbers are enforcing according to the given type.
Line 25: Line 25:
 
#ENFORCETYPE("NegativeInteger",23.34) = -23
 
#ENFORCETYPE("NegativeInteger",23.34) = -23
 
#ENFORCETYPE("Positive",-45.34) = 45.34
 
#ENFORCETYPE("Positive",-45.34) = 45.34
 +
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|v=6ptpoI4E-vA&t=71s|280|center|Number Types}}
  
 
==See Also==
 
==See Also==

Latest revision as of 15:22, 7 February 2019

ENFORCETYPE (Nature,Number)


  • is any type.
  • is any real number.

Description

  • This function converts or enforces the given number or set of numbers to the given type.
  • In , is any type of enforcing numbers.
  • is any real numbers.
  • Here Nature is indicating following Types:
  1. Integer
  2. Natural
  3. Negative
  4. Negative Integer
  5. Negzeropos
  6. Positive
  7. Positive Integer
  8. Zero.
  • When the given is a negative decimal number and the given type is Positive Integer then the result shows the number in a Positive integer value.
  • In the same way the given numbers are enforcing according to the given type.

Examples

  1. ENFORCETYPE("Integer",-87.65) = -87
  2. ENFORCETYPE("Natural",-87.65) = 87
  3. ENFORCETYPE("Negative",23.34) = -23.34
  4. ENFORCETYPE("NegativeInteger",23.34) = -23
  5. ENFORCETYPE("Positive",-45.34) = 45.34


Related Videos

Number Types

See Also


References