MCPcopy Create free account
hub / github.com/pquerna/ffjson / extFloat

Struct extFloat

fflib/v1/extfloat.go:11–15  ·  view source on GitHub ↗

An extFloat represents an extended floating-point number, with more precision than a float64. It does not try to save bits: the number represented by the structure is mant*(2^exp), with a negative sign if neg is true.

Source from the content-addressed store, hash-verified

9// number represented by the structure is mant*(2^exp), with a negative
10// sign if neg is true.
11type extFloat struct {
12 mant uint64
13 exp int
14 neg bool
15}
16
17// Powers of ten taken from double-conversion library.
18// http://code.google.com/p/double-conversion/

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected