EndfFloat
- class endf_parserpy.EndfFloat(value, orig_str)[source]
float that keeps track of string representation.
Instances of this class represent
floatnumbers. Additionally, each instance stores a string that should be the source string from which the float value was obtained.Numeric comparisons between
EndfFloatinstances and data types convertible to float numbers via thefloat()function are possible. However, usingEndfFloatinstances directly in arithmetic expressions is not possible. They must be explicitly converted to an integer or float number before viafloat()orint()function, respectively.Creation of EndfFloat instance.
- Parameters:
value (object) – Any object that can be converted to a float via
float(value).orig_str – A string representation that corresponds to the float number given as
valueargument.