You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-15 22:50:24 +02:00
decoder/encoder;float precision doc
This commit is contained in:
@ -75,6 +75,8 @@ func (stream *Stream) WriteFloat64Lossy(val float64) {
|
||||
}
|
||||
}
|
||||
|
||||
// EnableLossyFloatMarshalling keeps 10**(-6) precision
|
||||
// for float variables for better performance.
|
||||
func EnableLossyFloatMarshalling() {
|
||||
// for better performance
|
||||
RegisterTypeEncoder("float32", func(ptr unsafe.Pointer, stream *Stream) {
|
||||
|
Reference in New Issue
Block a user