Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for Nd (0.03 sec)

  1. src/strconv/decimal.go

    	return a.d[nd] >= '5'
    }
    
    // Round a to nd digits (or fewer).
    // If nd is zero, it means we're rounding
    // just to the left of the digits, as in
    // 0.09 -> 0.1.
    func (a *decimal) Round(nd int) {
    	if nd < 0 || nd >= a.nd {
    		return
    	}
    	if shouldRoundUp(a, nd) {
    		a.RoundUp(nd)
    	} else {
    		a.RoundDown(nd)
    	}
    }
    
    // Round a down to nd digits (or fewer).
    func (a *decimal) RoundDown(nd int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 15 19:41:25 UTC 2017
    - 11K bytes
    - Viewed (0)
  2. src/strconv/decimal_test.go

    		test := &roundtests[i]
    		d := NewDecimal(test.i)
    		d.RoundDown(test.nd)
    		s := d.String()
    		if s != test.down {
    			t.Errorf("Decimal %v RoundDown %d = %v, want %v",
    				test.i, test.nd, s, test.down)
    		}
    		d = NewDecimal(test.i)
    		d.Round(test.nd)
    		s = d.String()
    		if s != test.round {
    			t.Errorf("Decimal %v Round %d = %v, want %v",
    				test.i, test.nd, s, test.down)
    		}
    		d = NewDecimal(test.i)
    		d.RoundUp(test.nd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 3K bytes
    - Viewed (0)
  3. src/strconv/ftoa.go

    	shortest := prec < 0
    	if shortest {
    		roundShortest(d, mant, exp, flt)
    		digs = decimalSlice{d: d.d[:], nd: d.nd, dp: d.dp}
    		// Precision for shortest representation mode.
    		switch fmt {
    		case 'e', 'E':
    			prec = digs.nd - 1
    		case 'f':
    			prec = max(digs.nd-digs.dp, 0)
    		case 'g', 'G':
    			prec = digs.nd
    		}
    	} else {
    		// Round appropriately.
    		switch fmt {
    		case 'e', 'E':
    			d.Round(prec + 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/strconv/ftoaryu.go

    		d.dp += 9
    	} else {
    		d.nd = 0
    		// emit high part
    		n := uint(9)
    		for v := chi; v > 0; {
    			v1, v2 := v/10, v%10
    			v = v1
    			n--
    			d.d[n] = byte(v2 + '0')
    		}
    		d.d = d.d[n:]
    		d.nd = int(9 - n)
    		// emit low part
    		ryuDigits32(d, llo, clo, ulo,
    			c0, cup, d.nd+8)
    	}
    	// trim trailing zeros
    	for d.nd > 0 && d.d[d.nd-1] == '0' {
    		d.nd--
    	}
    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/strconv/atof.go

    		case s[i] == '.':
    			if sawdot {
    				return
    			}
    			sawdot = true
    			b.dp = b.nd
    			continue
    
    		case '0' <= s[i] && s[i] <= '9':
    			sawdigits = true
    			if s[i] == '0' && b.nd == 0 { // ignore leading zeros
    				b.dp--
    				continue
    			}
    			if b.nd < len(b.d) {
    				b.d[b.nd] = s[i]
    				b.nd++
    			} else if s[i] != '0' {
    				b.trunc = true
    			}
    			continue
    		}
    		break
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  6. src/regexp/testdata/re2-search.txt

    strings
    ""
    "abc123²³¼½¾₀₉"
    regexps
    "\\p{Nd}+"
    -;-;-;-
    -;3-6;-;3-6
    "^(?:\\p{Nd}+)$"
    -;-;-;-
    -;-;-;-
    "^(?:\\p{Nd}+)"
    -;-;-;-
    -;-;-;-
    "(?:\\p{Nd}+)$"
    -;-;-;-
    -;-;-;-
    strings
    ""
    "abc123²³¼½¾₀₉"
    regexps
    "\\p{^Nd}+"
    -;-;-;-
    -;0-3;-;0-3
    "^(?:\\p{^Nd}+)$"
    -;-;-;-
    -;-;-;-
    "^(?:\\p{^Nd}+)"
    -;-;-;-
    -;0-3;-;0-3
    "(?:\\p{^Nd}+)$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 42.4K bytes
    - Viewed (0)
  7. src/runtime/profbuf.go

    		return false
    	}
    
    	// room for data?
    	nd := countSub(br.dataCount(), bw.dataCount()) + len(b.data)
    	want := 2 + int(b.hdrsize) + nstk
    	i := int(bw.dataCount() % uint32(len(b.data)))
    	if i+want > len(b.data) {
    		// Can't fit in trailing fragment of slice.
    		// Skip over that and start over at beginning of slice.
    		nd -= len(b.data) - i
    	}
    	return nd >= want
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/testflag.go

    				packageNames = []string{}
    			}
    
    			if nd.RawArg == "-args" || nd.RawArg == "--args" {
    				// -args or --args signals that everything that follows
    				// should be passed to the test.
    				explicitArgs = append(explicitArgs, remainingArgs...)
    				break
    			}
    
    			if firstUnknownFlag == "" {
    				firstUnknownFlag = nd.RawArg
    			}
    
    			explicitArgs = append(explicitArgs, nd.RawArg)
    			args = remainingArgs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. subprojects/diagnostics/src/testFixtures/groovy/org/gradle/api/reporting/model/ReportNode.groovy

     */
    
    package org.gradle.api.reporting.model
    /**
     *
     * Represents a node of a hierarchical report
     * Extends from groovy's {@code groovy.util.Node} and hence GPath expressions can be used to search and identify report nodes nd values.
     *
     * See https://www.groovy-lang.org/processing-xml.html#_gpath
     *
     * E.g:
     * <pre>
     *      modelReport.reportNode.'**'.primaryCredentials.username.@nodeValue[0] == 'uname'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 06 16:25:37 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  10. samples/bookinfo/src/reviews/reviews-application/src/main/webapp/index.html

    		that will test the REST endpoint to ensure it is working.
    	</p>
    	<p>
    		For the complete feature documentation, see the <a
    			href="http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_feat.html%23rwlp_feat__jaxrs-2.0">jaxrs-2.0</a>
    		feature description in IBM Knowledge Center.
    	</p>
    </div>
    <div id="technologies">
        
        </div>
    </body>
    </html>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 17:00:23 UTC 2017
    - 196.5K bytes
    - Viewed (0)
Back to top