Skip to content

Defined in header <fkYAML/node.hpp>

fkyaml::basic_node::is_float_number

bool is_float_number() const noexcept;

Tests whether the node value type is node_t::FLOAT_NUMBER.

Return Value

true if the type is node_t::FLOAT_NUMBER, false otherwise.

Example
#include <iomanip>
#include <iostream>
#include <fkYAML/node.hpp>

int main() {
    fkyaml::node n = 3.14;
    std::cout << std::boolalpha << n.is_float_number() << std::endl;
    return 0;
}

output:

true

See Also