- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Truncation (0.16 sec)
-
src/bytes/buffer.go
func (b *Buffer) Truncate(n int) { if n == 0 { b.Reset() return } b.lastRead = opInvalid if n < 0 || n > b.Len() { panic("bytes.Buffer: truncation out of range") } b.buf = b.buf[:b.off+n] } // Reset resets the buffer to be empty, // but it retains the underlying storage for use by future writes. // Reset is the same as [Buffer.Truncate](0).
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 15.7K bytes - Viewed (0) -
doc/go1.17_spec.html
The conversion always yields a valid value; there is no indication of overflow. </li> <li> When converting a floating-point number to an integer, the fraction is discarded (truncation towards zero). </li> <li> When converting an integer or floating-point number to a floating-point type, or a complex number to another complex type, the result value is rounded
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
The conversion always yields a valid value; there is no indication of overflow. </li> <li> When converting a <a href="#Numeric_types">floating-point number</a> to an integer, the fraction is discarded (truncation towards zero). </li> <li> When converting an integer or floating-point number to a floating-point type, or a <a href="#Numeric_types">complex number</a> to another complex type, the result value is rounded
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0)