Double#

class swordfish._swordfishcpp.Double(data: float)#
class swordfish._swordfishcpp.Double

Represents a Swordfish Double object, initialized optionally with a Python float value.

Parameters:

data (float, optional) – A Python float used to initialize the Double object.

Examples

>>> import swordfish as sf
>>> sf.data.Double()
Double(null)
>>> sf.data.Double(3.14)
Double(3.14)
NULL_VALUE: Double#