Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for makeFloatFromLiteral (0.31 sec)

  1. src/go/constant/value.go

    		}
    		if x, ok := newInt().SetString(lit, 0); ok {
    			return intVal{x}
    		}
    
    	case token.FLOAT:
    		if x := makeFloatFromLiteral(lit); x != nil {
    			return x
    		}
    
    	case token.IMAG:
    		if n := len(lit); n > 0 && lit[n-1] == 'i' {
    			if im := makeFloatFromLiteral(lit[:n-1]); im != nil {
    				return makeComplex(int64Val(0), im)
    			}
    		}
    
    	case token.CHAR:
    		if n := len(lit); n >= 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
Back to top