Skip to content

isnan

Collection Note

This module is part of the ansible.builtin collection. To install the collection, use:

ansible-galaxy collection install ansible.builtin
Added in version 2.5.

Synopsis

  • Whether the input is a special floating point number called L(not a number, https://en.wikipedia.org/wiki/NaN).

Parameters

Parameter Defaults / Choices Comments
_input
raw
required
Possible number representation or string that can be converted into one.

Examples

isnan: "{{ '42' is nan }}"

Return Values

Key Data Type Description Returned
_value boolean Returns V(True) if the input is NaN, V(False) if otherwise.

Authors

  • Ansible Core