Fix: Allow sr_tags to take a "long" float
As it stands, passing a numerical tag into SR builder will fail if the float/number is "longer" than 16 characters.
Innolitics describes Floating Point Value Attribute
, tag (0040,A161), as:
The floating point representation of Numeric Value (0040,A30A). The same number of values as Numeric Value (0040,A30A) shall be present.
Required if Numeric Value (0040,A30A) has insufficient precision to represent the value as a string. May be present otherwise.
The current change first checks if the value will "fit" in Numeric Value, and truncate it to fit as needed. If the value is truncated, the full value is passed into a Floating Point Value.
The data type is chosen as a FD (floating double) instead of FL (floating single) due to python's float being of double precision inherently.
Edited by Ronan Lefol