exa.core.plotting.qpu_core.utils.get_exponent

Contents

exa.core.plotting.qpu_core.utils.get_exponent#

get_exponent(val)#

Get the exponent of the given value.

E.g. find_exp(3.7e-13) returns -13, find_exp(7250.1) returns 3.

Parameters:

val (float) – The value to get the exponent from.

Returns:

The exponent of the provided value.

Return type:

int