powered by
Create a float in MiniZinc
rminizinc::Expression -> Float
rminizinc::Expression
Float
.value
object of class expression
Float$new()
Float$getFloatVal()
Float$setFloatVal()
Float$c_str()
Float$clone()
new()
constructor
Float$new(val)
val
the float value
getFloatVal()
get the float value
setFloatVal()
set the float value
Float$setFloatVal(val)
value to be set
c_str()
get the MiniZinc representation
clone()
The objects of this class are cloneable with this method.
Float$clone(deep = FALSE)
deep
Whether to make a deep clone.
# NOT RUN { newFloat = Float$new(1.5) newFloat$c_str() newFloat$setFloatVal(newFloat$getFloatVal() + 2.5) newFloat$c_str() # }
Run the code above in your browser using DataLab