is_scalar_number#

static MathUtils.is_scalar_number(x: object) bool#

Check if a value is a scalar number (int or float).

Parameters:
xobject

Value to check.

Returns:
bool

True if x is a scalar number, False otherwise.

Examples

>>> from ansys.aedt.core.generic.math_utils import MathUtils
>>> MathUtils.is_scalar_number(3.14)
True