nimble.match.anyFloating

nimble.match.anyFloating(data)

Determine if any values in the data are a float type.

Return True if one or more value in the data is a float type.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

allFloating, floating

Examples

>>> lst = [[0, -1.0, True],
...        [1, -2.0, False],
...        [2, -3.0, False]]
>>> X = nimble.data(lst)
>>> anyFloating(X)
True
>>> lst = [['a', -1, True],
...        ['b', -2, False],
...        ['c', -3, False]]
>>> X = nimble.data(lst)
>>> anyFloating(X)
False