pydicom.valuerep.DSfloat¶
-
class
pydicom.valuerep.DSfloat(val)¶ Store value for an element with VR ‘DS’ as
float.If constructed from an empty string, return the empty string, not an instance of this class.
-
__init__(val)¶ Store the original string if one given, for exact write-out of same value later.
Methods
__init__(val)Store the original string if one given, for exact write-out of same value later. as_integer_ratioReturn integer ratio. conjugateReturn self, the complex conjugate of any float. fromhexCreate a floating-point number from a hexadecimal string. hexReturn a hexadecimal representation of a floating-point number. is_integerReturn True if the float is an integer. Attributes
imagthe imaginary part of a complex number original_stringrealthe real part of a complex number -