Float {rminizinc} | R Documentation |
Float
Description
Create a float in MiniZinc
Super class
rminizinc::Expression
-> Float
Public fields
.value
object of class expression
Active bindings
.value
object of class expression
Methods
Public methods
Inherited methods
Method new()
constructor
Usage
Float$new(val)
Arguments
val
the float value
Method getFloatVal()
get the float value
Usage
Float$getFloatVal()
Method setFloatVal()
set the float value
Usage
Float$setFloatVal(val)
Arguments
val
value 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
deep
Whether 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]