Manuals/calci/ENFORCETYPE
Jump to navigation
Jump to search
ENFORCETYPE (Nature,Number)
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Nature} is any type.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Number} is any real number.
Description
- This function converts or enforces the given number or set of numbers to the given type.
- In Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle ENFORCETYPE (Nature,Number)} ,Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Nature} is any type of enforcing numbers.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Number} is any real numbers.
- Here Nature is indicating following Types:
- Integer
- Natural
- Negative
- Negative Integer
- Negzeropos
- Positive
- Positive Integer
- 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
- ENFORCETYPE("Integer",-87.65) = -87
- ENFORCETYPE("Natural",-87.65) = 87
- ENFORCETYPE("Negative",23.34) = -23.34
- ENFORCETYPE("NegativeInteger",23.34) = -23
- ENFORCETYPE("Positive",-45.34) = 45.34
Related Videos
See Also
References