ansible.builtin.nan test – is this not a number (NaN)
Note
This test plugin is part of ansible-core
and included in all Ansible
installations. In most cases, you can use the short
plugin name
nan
.
However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.nan
for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same test plugin name.
Synopsis
Whether the input is a special floating point number called not a number.
Aliases: is_file, isnan
Input
This describes the input of the test, the value before is ansible.builtin.nan
or is not ansible.builtin.nan
.
Parameter |
Comments |
---|---|
Possible number representation or string that can be converted into one. |
Examples
isnan: "{{ '42' is nan }}"
Return Value
Key |
Description |
---|---|
Returns Returned: success |