openmc.data.endf.float_endf¶
-
openmc.data.endf.
float_endf
(s)¶ Convert string of floating point number in ENDF to float.
The ENDF-6 format uses an ‘e-less’ floating point number format, e.g. -1.23481+10. Trying to convert using the float built-in won’t work because of the lack of an ‘e’. This function allows such strings to be converted while still allowing numbers that are not in exponential notation to be converted as well.
Parameters: s (str) – Floating-point number from an ENDF file Returns: The number Return type: float