1# <small>nlohmann::basic_json::</small>is_number_float 2 3```cpp 4constexpr bool is_number_float() const noexcept; 5``` 6 7This function returns `#!cpp true` if and only if the JSON value is a floating-point number. This excludes signed and 8unsigned integer values. 9 10## Return value 11 12`#!cpp true` if type is a floating-point number, `#!cpp false` otherwise. 13 14## Exception safety 15 16No-throw guarantee: this member function never throws exceptions. 17 18## Complexity 19 20Constant. 21 22## Examples 23 24??? example 25 26 The following code exemplifies `is_number_float()` for all JSON types. 27 28 ```cpp 29 --8<-- "examples/is_number_float.cpp" 30 ``` 31 32 Output: 33 34 ```json 35 --8<-- "examples/is_number_float.output" 36 ``` 37 38## See also 39 40- [is_number()](is_number.md) check if value is a number 41- [is_number_integer()](is_number_integer.md) check if value is an integer or unsigned integer number 42- [is_number_unsigned()](is_number_unsigned.md) check if value is an unsigned integer number 43 44## Version history 45 46- Added in version 1.0.0. 47