uxarray.utils.computing._split

Contents

uxarray.utils.computing._split#

uxarray.utils.computing._split(a)#

Split a floating-point number into two parts: The rounded floating point presentation and its error. This can be utlized to substitute the FMA operation on the software level.

Parameters:

a (float) – The number to be split.

Returns:

The high and low precision parts of the number.

Return type:

tuple of float

Examples

>>> _split(12345.6789)
(12345.67578125, 0.00311875)

T. J. Dekker. A Floating-Point Technique for Extending the Available Precision. Numerische Mathematik, 18(3), 224–242,

1971. 10.1007/BF01397083. Available at: https://doi.org/10.1007/ BF01397083. 27