| Float {rminizinc} | R Documentation |
Float
Description
Create a float in MiniZinc
Super class
rminizinc::Expression -> Float
Public fields
.valueobject of class expression
Active bindings
.valueobject of class expression
Methods
Public methods
Inherited methods
Method new()
constructor
Usage
Float$new(val)
Arguments
valthe float value
Method getFloatVal()
get the float value
Usage
Float$getFloatVal()
Method setFloatVal()
set the float value
Usage
Float$setFloatVal(val)
Arguments
valvalue to be set
Method c_str()
get the MiniZinc representation
Usage
Float$c_str()
Method clone()
The objects of this class are cloneable with this method.
Usage
Float$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
newFloat = Float$new(1.5)
newFloat$c_str()
newFloat$setFloatVal(newFloat$getFloatVal() + 2.5)
newFloat$c_str()
[Package rminizinc version 0.0.8 Index]