Defined in header <fkYAML/node.hpp>
fkyaml::basic_node::is_float_number¶
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: