Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for decDecimal (0.09 sec)

  1. src/internal/gover/gover.go

    		return -1
    	} else {
    		return +1
    	}
    }
    
    // DecInt returns the decimal string decremented by 1, or the empty string
    // if the decimal is all zeroes.
    // (Copied from golang.org/x/mod/module's decDecimal.)
    func DecInt(decimal string) string {
    	// Scan right to left turning 0s to 9s until you find a digit to decrement.
    	digits := []byte(decimal)
    	i := len(digits) - 1
    	for ; i >= 0 && digits[i] == '0'; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top