MCPcopy Create free account
hub / github.com/couchbase/fleece / isIntRepresentable

Method isIntRepresentable

Fleece/Core/Encoder.cc:301–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299
300#if 0
301 bool Encoder::isIntRepresentable(float n) noexcept {
302 return (n <= INT32_MAX && n >= INT32_MIN && n == floorf(n));
303 }
304
305 bool Encoder::isIntRepresentable(double n) noexcept {
306 return (n <= INT64_MAX && n >= INT64_MIN && n == floor(n));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected