MCPcopy
hub / github.com/dgraph-io/dgraph / String

Method String

types/earth.go:55–63  ·  view source on GitHub ↗

String converts the area to human readable units

()

Source from the content-addressed store, hash-verified

53
54// String converts the area to human readable units
55func (a Area) String() string {
56 switch {
57 case a > km2:
58 return fmt.Sprintf("%.3f km^2", a/km2)
59 case a < 1:
60 return fmt.Sprintf("%.3f cm^2", a*cm2)
61 }
62 return fmt.Sprintf("%.3f m^2", a)
63}

Callers 8

FloatArrayAsStringFunction · 0.45
ConvertFunction · 0.45
MarshalFunction · 0.45
t.goFile · 0.45
startClusterFunction · 0.45
LangBaseFunction · 0.45
QueryTokensMethod · 0.45
GetPersistantOptionsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected