FloatProperty

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

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

See also

ipcore.properties.descriptor.DefinitionProperty, ipcore.properties.descriptor.NumberProperty, ipcore.properties.descriptor.IntProperty, 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