Float: Float

Description Super class Public fields Active bindings Methods Examples

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

1
2
3
4
newFloat = Float$new(1.5)
newFloat$c_str()
newFloat$setFloatVal(newFloat$getFloatVal() + 2.5)
newFloat$c_str()

rminizinc documentation built on Oct. 15, 2021, 9:06 a.m.