The Integer object is used to store and manipulate an integer number.
As Float and String objects, the Integer object cannot be instanciated, see Seccia language documentation for further details.
Functions
| Add | Adds a value to the number. |
|---|---|
| AddOne | Adds 1 to the number. |
| Div | Divides the number by a value. |
| Get | Returns the stored value. |
| GetObjectRef | Retrieves the inner Seccia reference of the object. |
| IsPrimeNumber | Checks if the value is a prime number. |
| Mod | Calculates a modulo with another number. |
| Mult | Multiplies the number by a value. |
| Pow | Takes the number to a specified power. |
| Set | Changes the stored value. |
| Sub | Subtracts a value to the number. |
| SubOne | Subtracts 1 to the number. |
Events
The Integer object has no events.
Constants
The Integer object has no constants.
Example
// Create an Integer named myInteger
Integer myInteger
// Set myInteger value to 10
myInteger = 10
// Display myInteger value in a message box
MessageBox("Current value: " + myInteger)
// Add 10 to myInteger
myInteger.Add(10)
// Display myInteger value in a message box
MessageBox("Current value: " + myInteger)
Integer myInteger
// Set myInteger value to 10
myInteger = 10
// Display myInteger value in a message box
MessageBox("Current value: " + myInteger)
// Add 10 to myInteger
myInteger.Add(10)
// Display myInteger value in a message box
MessageBox("Current value: " + myInteger)