pydicom.config.allow_DS_float

pydicom.config.allow_DS_float = False

Set to True to allow DSdecimal instances to be created using floats; otherwise, they must be explicitly converted to str, with the user explicitly setting the precision of digits and rounding.

Default False.