- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for decDecimal (0.38 sec)
-
src/cmd/vendor/golang.org/x/mod/module/pseudo.go
digits[i]++ } else { // digits is all zeros digits[0] = '1' digits = append(digits, '0') } return string(digits) } // decDecimal returns the decimal string decremented by 1, or the empty string // if the decimal is all zeroes. func decDecimal(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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 8.4K bytes - Viewed (0) -
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)