MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / ParseFloat64OrReturnBadRequest

Function ParseFloat64OrReturnBadRequest

client/utils/rest.go:84–96  ·  view source on GitHub ↗

ParseFloat64OrReturnBadRequest converts s to a float64 value. It returns a default value, defaultIfEmpty, if the string is empty.

(w http.ResponseWriter, s string, defaultIfEmpty float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 2

WriteErrorResponseFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected