Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 172 for 0x0p0 (0.04 sec)

  1. src/go/printer/testdata/go2numbers.norm

    	_	= 1_2_3.123
    	_	= 0123.01_23
    
    	// hexadecimal floats
    	_	= 0x0.p+0
    	_	= 0xdeadcafe.p-10
    	_	= 0x1234.p123
    
    	_	= 0x.1p-0
    	_	= 0x.deadcafep2
    	_	= 0x.1234p+10
    
    	_	= 0x0p0
    	_	= 0xdeadcafep+1
    	_	= 0x1234p-10
    
    	_	= 0x0.0p0
    	_	= 0xdead.cafep+1
    	_	= 0x12.34p-10
    
    	_	= 0xdead_cafep+1
    	_	= 0x_1234p-10
    
    	_	= 0x_dead_cafe.p-10
    	_	= 0x12_34.p1_2_3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 17 02:15:01 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/gofmt/testdata/go2numbers.golden

    	_ = 1_2_3.123
    	_ = 0123.01_23
    
    	// hexadecimal floats
    	_ = 0x0.p+0
    	_ = 0xdeadcafe.p-10
    	_ = 0x1234.p123
    
    	_ = 0x.1p-0
    	_ = 0x.deadcafep2
    	_ = 0x.1234p+10
    
    	_ = 0x0p0
    	_ = 0xdeadcafep+1
    	_ = 0x1234p-10
    
    	_ = 0x0.0p0
    	_ = 0xdead.cafep+1
    	_ = 0x12.34p-10
    
    	_ = 0xdead_cafep+1
    	_ = 0x_1234p-10
    
    	_ = 0x_dead_cafe.p-10
    	_ = 0x12_34.p1_2_3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 21 17:24:29 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  3. src/go/printer/testdata/go2numbers.input

    	_ = 1_2_3.123
    	_ = 0123.01_23
    
    	// hexadecimal floats
    	_ = 0x0.p+0
    	_ = 0Xdeadcafe.p-10
    	_ = 0x1234.P123
    
    	_ = 0x.1p-0
    	_ = 0X.deadcafep2
    	_ = 0x.1234P+10
    
    	_ = 0x0p0
    	_ = 0Xdeadcafep+1
    	_ = 0x1234P-10
    
    	_ = 0x0.0p0
    	_ = 0Xdead.cafep+1
    	_ = 0x12.34P-10
    
    	_ = 0Xdead_cafep+1
    	_ = 0x_1234P-10
    
    	_ = 0X_dead_cafe.p-10
    	_ = 0x12_34.P1_2_3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 21:54:06 UTC 2020
    - 2K bytes
    - Viewed (0)
  4. src/cmd/gofmt/testdata/go2numbers.input

    	_ = 1_2_3.123
    	_ = 0123.01_23
    
    	// hexadecimal floats
    	_ = 0x0.p+0
    	_ = 0Xdeadcafe.p-10
    	_ = 0x1234.P123
    
    	_ = 0x.1p-0
    	_ = 0X.deadcafep2
    	_ = 0x.1234P+10
    
    	_ = 0x0p0
    	_ = 0Xdeadcafep+1
    	_ = 0x1234P-10
    
    	_ = 0x0.0p0
    	_ = 0Xdead.cafep+1
    	_ = 0x12.34P-10
    
    	_ = 0Xdead_cafep+1
    	_ = 0x_1234P-10
    
    	_ = 0X_dead_cafe.p-10
    	_ = 0x12_34.P1_2_3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 21 17:24:29 UTC 2019
    - 2K bytes
    - Viewed (0)
  5. src/go/printer/testdata/go2numbers.golden

    	_	= 1_2_3.123
    	_	= 0123.01_23
    
    	// hexadecimal floats
    	_	= 0x0.p+0
    	_	= 0Xdeadcafe.p-10
    	_	= 0x1234.P123
    
    	_	= 0x.1p-0
    	_	= 0X.deadcafep2
    	_	= 0x.1234P+10
    
    	_	= 0x0p0
    	_	= 0Xdeadcafep+1
    	_	= 0x1234P-10
    
    	_	= 0x0.0p0
    	_	= 0Xdead.cafep+1
    	_	= 0x12.34P-10
    
    	_	= 0Xdead_cafep+1
    	_	= 0x_1234P-10
    
    	_	= 0X_dead_cafe.p-10
    	_	= 0x12_34.P1_2_3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 21:54:06 UTC 2020
    - 2K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/literals.go

    	assert(0x1234.P84 == 0x1234000000000000000000000)
    
    	assert(0x.1p-0 == 1./16)
    	assert(0X.deadcafep4 == 1.0*0xdeadcafe/0x10000000)
    	assert(0x.1234P+12 == 1.0*0x1234/0x10)
    
    	assert(0x0p0 == 0.)
    	assert(0Xdeadcafep+1 == 0x1bd5b95fc)
    	assert(0x1234P-10 == 0x1234/1024.0)
    
    	assert(0x0.0p0 == 0.)
    	assert(0Xdead.cafep+1 == 1.0*0x1bd5b95fc/0x10000)
    	assert(0x12.34P-10 == 1.0*0x1234/0x40000)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/scanner_test.go

    		{IntLit, "0x", "0x", "hexadecimal literal has no digits"},
    		{IntLit, "0x1g", "0x1 g", ""},
    
    		{ImagLit, "0xf00i", "0xf00i", ""},
    
    		// hexadecimal floats
    		{FloatLit, "0x0p0", "0x0p0", ""},
    		{FloatLit, "0x12efp-123", "0x12efp-123", ""},
    		{FloatLit, "0xABCD.p+0", "0xABCD.p+0", ""},
    		{FloatLit, "0x.0189P-0", "0x.0189P-0", ""},
    		{FloatLit, "0x1.ffffp+1023", "0x1.ffffp+1023", ""},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  8. src/text/scanner/scanner_test.go

    		{Int, "0xcafef00d", "0xcafef00d", ""},
    		{Int, "0XCAFEF00D", "0XCAFEF00D", ""},
    
    		{Int, "0x", "0x", "hexadecimal literal has no digits"},
    		{Int, "0x1g", "0x1 g", ""},
    
    		// hexadecimal floats
    		{Float, "0x0p0", "0x0p0", ""},
    		{Float, "0x12efp-123", "0x12efp-123", ""},
    		{Float, "0xABCD.p+0", "0xABCD.p+0", ""},
    		{Float, "0x.0189P-0", "0x.0189P-0", ""},
    		{Float, "0x1.ffffp+1023", "0x1.ffffp+1023", ""},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  9. src/math/big/ftoa.go

    		buf = append(buf, '+')
    	}
    	return strconv.AppendInt(buf, e, 10)
    }
    
    // fmtX appends the string of x in the format "0x1." mantissa "p" exponent
    // with a hexadecimal mantissa and a binary exponent, or "0x0p0" if x is zero,
    // and returns the extended buffer.
    // A non-zero mantissa is normalized such that 1.0 <= mantissa < 2.0.
    // The sign of x is ignored, and x must not be an Inf.
    // (The caller handles Inf before invoking fmtX.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  10. src/go/constant/value_test.go

    	`0x0.p+0 = 0.`,
    	`0Xdeadcafe.p-10 = 0xdeadcafe/1024`,
    	`0x1234.P84 = 0x1234000000000000000000000`,
    
    	`0x.1p-0 = 1/16`,
    	`0X.deadcafep4 = 0xdeadcafe/0x10000000`,
    	`0x.1234P+12 = 0x1234/0x10`,
    
    	`0x0p0 = 0.`,
    	`0Xdeadcafep+1 = 0x1bd5b95fc`,
    	`0x1234P-10 = 0x1234/1024`,
    
    	`0x0.0p0 = 0.`,
    	`0Xdead.cafep+1 = 0x1bd5b95fc/0x10000`,
    	`0x12.34P-10 = 0x1234/0x40000`,
    
    	`0Xdead_cafep+1 = 0xdeadcafep+1`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 15.6K bytes
    - Viewed (0)
Back to top