Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 399 for udigits (0.14 sec)

  1. src/fmt/format.go

    				}
    				// Count significant digits after the first non-zero digit.
    				if sawNonzeroDigit {
    					digits--
    				}
    			}
    		}
    		if !hasDecimalPoint {
    			// Leading digit 0 should contribute once to digits.
    			if len(num) == 2 && num[1] == '0' {
    				digits--
    			}
    			num = append(num, '.')
    		}
    		for digits > 0 {
    			num = append(num, '0')
    			digits--
    		}
    		num = append(num, tail...)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. src/fmt/print.go

    	case 'b':
    		p.fmt.fmtInteger(v, 2, isSigned, verb, ldigits)
    	case 'o', 'O':
    		p.fmt.fmtInteger(v, 8, isSigned, verb, ldigits)
    	case 'x':
    		p.fmt.fmtInteger(v, 16, isSigned, verb, ldigits)
    	case 'X':
    		p.fmt.fmtInteger(v, 16, isSigned, verb, udigits)
    	case 'c':
    		p.fmt.fmtC(v)
    	case 'q':
    		p.fmt.fmtQc(v)
    	case 'U':
    		p.fmt.fmtUnicode(v)
    	default:
    		p.badVerb(verb)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  3. src/math/big/natconv.go

    //	prefix    = "0" [ "b" | "B" | "o" | "O" | "x" | "X" ] .
    //	mantissa  = digits "." [ digits ] | digits | "." digits .
    //	pmantissa = [ "_" ] digits "." [ digits ] | [ "_" ] digits | "." digits .
    //	digits    = digit { [ "_" ] digit } .
    //	digit     = "0" ... "9" | "a" ... "z" | "A" ... "Z" .
    //
    // Unless fracOk is set, the base argument must be 0 or a value between
    // 2 and MaxBase. If fracOk is set, the base argument must be one of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 14.6K bytes
    - Viewed (0)
  4. src/strconv/ftoaryu.go

    	// was even.
    	lok := dl0 && fracl == 0 && (mant&1 == 0)
    	if !lok {
    		dl++
    	}
    	// We need to remember whether the trimmed digits of 'dc' are zero.
    	c0 := dc0 && fracc == 0
    	// render digits
    	ryuDigits(d, dl, dc, du, c0, cup)
    	d.dp -= q
    }
    
    // mulByLog2Log10 returns math.Floor(x * log(2)/log(10)) for an integer x in
    // the range -1600 <= x && x <= +1600.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  5. src/unicode/digit.go

    // license that can be found in the LICENSE file.
    
    package unicode
    
    // IsDigit reports whether the rune is a decimal digit.
    func IsDigit(r rune) bool {
    	if r <= MaxLatin1 {
    		return '0' <= r && r <= '9'
    	}
    	return isExcludingLatin(Digit, r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 352 bytes
    - Viewed (0)
  6. src/regexp/syntax/doc.go

    	\pF            Unicode character class F (one-letter name)
    
    Named character classes as character class elements:
    
    	[\d]           digits (== \d)
    	[^\d]          not digits (== \D)
    	[\D]           not digits (== \D)
    	[^\D]          not not digits (== \d)
    	[[:name:]]     named ASCII class inside character class (== [:name:])
    	[^[:name:]]    named ASCII class inside negated character class (== [:^name:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:21:02 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/strconv/decimal.go

    // in multiprecision binary precisely.
    
    package strconv
    
    type decimal struct {
    	d     [800]byte // digits, big-endian representation
    	nd    int       // number of digits used
    	dp    int       // decimal point
    	neg   bool      // negative flag
    	trunc bool      // discarded nonzero digits beyond d[:nd]
    }
    
    func (a *decimal) String() string {
    	n := 10 + a.nd
    	if a.dp > 0 {
    		n += a.dp
    	}
    	if a.dp < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 15 19:41:25 UTC 2017
    - 11K bytes
    - Viewed (0)
  8. src/math/big/natdiv.go

    The first step divides n digits by n digits to ensure that it produces only a
    single digit.
    
    Each subsequent step appends the next digit from u to the remainder and divides
    those n+1 digits by the n digits of v, producing another quotient digit and a
    new n-digit remainder.
    
    Subsequent steps divide n+1 digits by n digits, an operation that in general
    might produce two digits. However, as used in the algorithm, that division is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  9. src/math/big/decimal.go

    // with the most-significant mantissa digit at index 0. For the zero decimal, the
    // mantissa length and exponent are 0.
    // The zero value for decimal represents a ready-to-use 0.0.
    type decimal struct {
    	mant []byte // mantissa ASCII digits, big-endian
    	exp  int    // exponent
    }
    
    // at returns the i'th mantissa digit, starting with the most significant digit at 0.
    func (d *decimal) at(i int) byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 22:45:29 UTC 2020
    - 6.6K bytes
    - Viewed (0)
  10. src/math/trig_reduce.go

    	// Use the exponent to extract the 3 appropriate uint64 digits from mPi4,
    	// B ~ (z0, z1, z2), such that the product leading digit has the exponent -61.
    	// Note, exp >= -53 since x >= PI4 and exp < 971 for maximum float64.
    	digit, bitshift := uint(exp+61)/64, uint(exp+61)%64
    	z0 := (mPi4[digit] << bitshift) | (mPi4[digit+1] >> (64 - bitshift))
    	z1 := (mPi4[digit+1] << bitshift) | (mPi4[digit+2] >> (64 - bitshift))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.3K bytes
    - Viewed (0)
Back to top