INNER CODE UNIT · Go

yl

ericlagergren/decimal · big.go:427

	yl := arith.Length(u) - 1
	if xl != yl {
		if xl < yl {
			return -1
		}
		return +1
	}

	// The length of the integral parts match. Rescale x, then
	// compare straight across.
	t, ok := scalex(x.compact, x.exp)
	if !ok {
		if x.exp > 0 {
			// Overflow.
			return +1
		}
		// Underflow.
		return -1

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…