Float

The Float object is used to store and manipulate a float number.
As Integer and String objects, the Float object cannot be instanciated, see Seccia language documentation for further details.

Functions

AddAdds a value to the number.
AddOneAdds 1.0 to the number.
DivDivides the number by a value.
GetReturns the stored value.
GetIntReturns the stored value without the decimal part.
GetObjectRefRetrieves the inner Seccia reference of the object.
ModCalculates a modulo with another number.
MultMultiplies the number by a value.
PowTakes the number to a specified power.
RoundRounds the float value without changing the stored value.
SetChanges the stored value.
SubSubtracts a value to the number.
SubOneSubtracts 1.0 to the number.

Events

The Float object has no events.

Constants

The Float object has no constants.

Example

// Create a Float named myFloat
Float myFloat

// Set myFloat value to 10.0
myFloat = 10.0

// Display myFloat value in a message box
MessageBox("Current value: " + myFloat)

// Add 5.2 to myFloat
myFloat.Add(5.2)

// Display myFloat value in a message box
MessageBox("Current value: " + myFloat)
SECCIA Documentation - Copyright © 2001-2013 Sylvain Seccia