Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toflt (0.26 sec)

  1. src/cmd/compile/internal/typecheck/const.go

    			v = toint(v)
    			return v
    		case t.IsFloat():
    			v = toflt(v)
    			v = truncfltlit(v, t)
    			return v
    		case t.IsComplex():
    			v = tocplx(v)
    			v = trunccmplxlit(v, t)
    			return v
    		}
    	}
    
    	return constant.MakeUnknown()
    }
    
    func tocplx(v constant.Value) constant.Value {
    	return constant.ToComplex(v)
    }
    
    func toflt(v constant.Value) constant.Value {
    	if v.Kind() == constant.Complex {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top