Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OverflowComplex (0.44 sec)

  1. src/reflect/value.go

    	v.mustBe(Struct)
    	tt := (*structType)(unsafe.Pointer(v.typ()))
    	return len(tt.Fields)
    }
    
    // OverflowComplex reports whether the complex128 x cannot be represented by v's type.
    // It panics if v's Kind is not [Complex64] or [Complex128].
    func (v Value) OverflowComplex(x complex128) bool {
    	k := v.kind()
    	switch k {
    	case Complex64:
    		return overflowFloat32(real(x)) || overflowFloat32(imag(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	shouldPanic("call of reflect.Value.NumMethod on zero Value", func() { vo(nil).NumMethod() })
    	shouldPanic("call of reflect.Value.OverflowComplex on float64 Value", func() { vo(float64(0)).OverflowComplex(0) })
    	shouldPanic("call of reflect.Value.OverflowFloat on int64 Value", func() { vo(int64(0)).OverflowFloat(0) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top