Integer

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

AddAdds a value to the number.
AddOneAdds 1 to the number.
DivDivides the number by a value.
GetReturns the stored value.
GetObjectRefRetrieves the inner Seccia reference of the object.
IsPrimeNumberChecks if the value is a prime number.
ModCalculates a modulo with another number.
MultMultiplies the number by a value.
PowTakes the number to a specified power.
SetChanges the stored value.
SubSubtracts a value to the number.
SubOneSubtracts 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)
SECCIA Documentation - Copyright © 2001-2013 Sylvain Seccia