cosmicfish_pylib.utilities.num_to_mant_exp

cosmicfish_pylib.utilities.num_to_mant_exp(num)[source]

This function returns the (base 10) exponent and mantissa of a number.

Parameters:num (int or float) – input number.
Returns:tuple (mantissa, exponent) of int containing the mantissa and the exponent of the input number.
Return type:tuple