Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/fory
/ String
Method
String
go/fory/decimal.go:45–47 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
}
44
45
func
(d Decimal) String() string {
46
return
fmt.Sprintf(
"%se%d"
, d.Unscaled.String(), -d.Scale)
47
}
48
49
var
(
50
decimalReflectType = reflect.TypeFor[Decimal]()
Callers
15
main
Function · 0.45
newTypeResolver
Function · 0.45
calcTypeHash
Function · 0.45
createSerializer
Method · 0.45
encodeType
Method · 0.45
WriteData
Method · 0.45
canonicalDecimalString
Function · 0.45
decimalDigitCount
Function · 0.45
TestCompatibleScalarConversions
Function · 0.45
TestCompatibleScalarRejectsRefValueFlag
Function · 0.45
ReadData
Method · 0.45
TestRefResolverBoundaryRegression
Function · 0.45
Calls
no outgoing calls
Tested by
3
TestCompatibleScalarConversions
Function · 0.36
TestCompatibleScalarRejectsRefValueFlag
Function · 0.36
TestRefResolverBoundaryRegression
Function · 0.36