FloatProperty

ipkiss3.all.FloatProperty(restriction=None, doc=None, default=None, locked=False, **kwargs)

DefinitionProperty restricted to be a floating point number (python float)

Examples

>>> import ipkiss3.all as i3
>>> class MyCell(i3.PCell):
...     prop = i3.FloatProperty(default=0.0, doc="an example floatproperty")
>>> cell = MyCell()
>>> cell.prop
0.0
>>> cell.prop = 1  # Automatically casted to a float
>>> cell.prop
1.0