A lexical integer constant evaluates to a value of type integer. The
internal representation of integers is 64-bit signed two's-complement.
Overflows or underflow's during integer computations do not throw
exceptions.
Integer Expressions
Expression Value Value Type
---------- ----- ----------
1 + 2 3 Integer
2*(7+1) 16 Integer
4/2 2 Integer
6%4 2 Integer
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI |
|
Methods inherited from: Real
sqrt, toLogicalConcept, toStringConcept, abs, max, min, acos, asin, atan, ceil, cos, exp, floor, log, pow, sin, tan, toDegrees, toRadians |
|
Parameters: |
$value : | A string concept. |
|
Constructs an integer concept inicialized with the value represented by
the string given as parameter.
Parameters: |
$int : | Concept which value will be substracted from this concept. |
|
Substracts the concept value given as parameter from this concept value
and returns the result.
Parameters: |
$int : | Concept that will be added to this concept. |
|
Adds the concept value given as parameter to this concept value and
returns the result.
Decrease this concept value with 1.
Increase this concept value with 1.
Parameters: |
$int : | Concept with which value will be multiplied this concept. |
|
Multipy with the parameter value this concept value and returns the
result.
Parameters: |
$int : | Concept with which value will be divided this concept. |
|
Divide this concept value with the concept value given as parameter and
returns the result.
Parameters: |
$value : | The string concept to be parsed. |
|
Returns a newly constructed integer concept inicialized to the value
represented by the string given as parameter.
$int typeof Integer
$int.fromString("123")
print $int
-- the result is --
123
Returns the absolute value of an integer concept.
If the argument is not negative, the argument is returned.
If the argument is negative, the negation of the argument
is returned.
$int = -12
print $int.abs
-- the result is --
12
Parameters: |
$value : | The integer concept to be compared to the current value |
|
Returns the greater of two integer concepts.
If the arguments have the same value,
the result is that same value.
$int = 2
$test = -15
print $int.max($test)
-- the result is --
2
Parameters: |
$value : | The integer concept to be compared to the current value |
|
Returns the smaller of two integer concepts.
If the arguments have the same value,
the result is that same value.
$int = 2
$test = -15
print $int.min($test)
-- the result is --
-15