MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / IsFloat

Function IsFloat

rapidjson/document.h:985–990  ·  view source on GitHub ↗

Checks whether a number is a float (possible lossy).

Source from the content-addressed store, hash-verified

983
984 // Checks whether a number is a float (possible lossy).
985 bool IsFloat() const {
986 if ((data_.f.flags & kDoubleFlag) == 0)
987 return false;
988 double d = GetDouble();
989 return d >= -3.4028234e38 && d <= 3.4028234e38;
990 }
991 // Checks whether a number can be losslessly converted to a float.
992 bool IsLosslessFloat() const {
993 if (!IsNumber()) return false;

Callers

nothing calls this directly

Calls 1

GetDoubleFunction · 0.85

Tested by

no test coverage detected