Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for printfloat (0.17 sec)

  1. test/print.go

    	println(uint16(7))          // printuint
    	println(uint8(7))           // printuint
    	println(uint(7))            // printuint
    	println(uintptr(7))         // printuint
    	println(8.0)                // printfloat
    	println(complex(9.0, 10.0)) // printcomplex
    	println(true)               // printbool
    	println(false)              // printbool
    	println("hello")            // printstring
    	println("one", "two")       // printsp
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.goPanicSlice3B", 1},
    	{"runtime.goPanicSlice3BU", 1},
    	{"runtime.goPanicSlice3C", 1},
    	{"runtime.goPanicSlice3CU", 1},
    	{"runtime.goPanicSliceConvert", 1},
    	{"runtime.printbool", 1},
    	{"runtime.printfloat", 1},
    	{"runtime.printint", 1},
    	{"runtime.printhex", 1},
    	{"runtime.printuint", 1},
    	{"runtime.printcomplex", 1},
    	{"runtime.printstring", 1},
    	{"runtime.printpointer", 1},
    	{"runtime.printuintptr", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/runtime/print.go

    	printstring(" ")
    }
    
    func printnl() {
    	printstring("\n")
    }
    
    func printbool(v bool) {
    	if v {
    		printstring("true")
    	} else {
    		printstring("false")
    	}
    }
    
    func printfloat(v float64) {
    	switch {
    	case v != v:
    		printstring("NaN")
    		return
    	case v+v == v && v > 0:
    		printstring("+Inf")
    		return
    	case v+v == v && v < 0:
    		printstring("-Inf")
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func goPanicSlice3B(x int, y int)
    func goPanicSlice3BU(x uint, y int)
    func goPanicSlice3C(x int, y int)
    func goPanicSlice3CU(x uint, y int)
    func goPanicSliceConvert(x int, y int)
    
    func printbool(bool)
    func printfloat(float64)
    func printint(int64)
    func printhex(uint64)
    func printuint(uint64)
    func printcomplex(complex128)
    func printstring(string)
    func printpointer(any)
    func printuintptr(uintptr)
    func printiface(any)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/builtin.go

    	{"goPanicSlice3B", funcTag, 16},
    	{"goPanicSlice3BU", funcTag, 18},
    	{"goPanicSlice3C", funcTag, 16},
    	{"goPanicSlice3CU", funcTag, 18},
    	{"goPanicSliceConvert", funcTag, 16},
    	{"printbool", funcTag, 19},
    	{"printfloat", funcTag, 21},
    	{"printint", funcTag, 23},
    	{"printhex", funcTag, 25},
    	{"printuint", funcTag, 25},
    	{"printcomplex", funcTag, 27},
    	{"printstring", funcTag, 29},
    	{"printpointer", funcTag, 30},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/builtin.go

    			}
    		case types.TINT, types.TINT8, types.TINT16, types.TINT32, types.TINT64:
    			on = typecheck.LookupRuntime("printint")
    		case types.TFLOAT32, types.TFLOAT64:
    			on = typecheck.LookupRuntime("printfloat")
    		case types.TCOMPLEX64, types.TCOMPLEX128:
    			on = typecheck.LookupRuntime("printcomplex")
    		case types.TBOOL:
    			on = typecheck.LookupRuntime("printbool")
    		case types.TSTRING:
    			cs := ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    <pre>
    switch i := x.(type) {
    case nil:
    	printString("x is nil")                // type of i is type of x (interface{})
    case int:
    	printInt(i)                            // type of i is int
    case float64:
    	printFloat64(i)                        // type of i is float64
    case func(int) float64:
    	printFunction(i)                       // type of i is func(int) float64
    case bool, string:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  8. doc/go_spec.html

    <pre>
    switch i := x.(type) {
    case nil:
    	printString("x is nil")                // type of i is type of x (interface{})
    case int:
    	printInt(i)                            // type of i is int
    case float64:
    	printFloat64(i)                        // type of i is float64
    case func(int) float64:
    	printFunction(i)                       // type of i is func(int) float64
    case bool, string:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top