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

Method isFloatRepresentable

Fleece/Core/Encoder.cc:310–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308#endif
309
310 bool Encoder::isFloatRepresentable(double n) noexcept {
311 return (fabs(n) <= FLT_MAX && n == (float)n);
312 }
313
314
315#pragma mark - STRINGS / DATA:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected