MCPcopy Create free account
hub / github.com/aws/smithy-go / floatOfBitSize

Method floatOfBitSize

document/document.go:133–135  ·  view source on GitHub ↗

Float64 returns the number as a float64.

(bitSize int)

Source from the content-addressed store, hash-verified

131
132// Float64 returns the number as a float64.
133func (n Number) floatOfBitSize(bitSize int) (float64, error) {
134 return strconv.ParseFloat(string(n), bitSize)
135}
136
137// BigFloat attempts to convert the number to a big.Float, returns an error if the operation fails.
138func (n Number) BigFloat() (*big.Float, error) {

Callers 2

Float32Method · 0.95
Float64Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected