- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for Float32Val (0.13 sec)
-
src/fmt/scan_test.go
int64Val int64 uintVal uint uint8Val uint8 uint16Val uint16 uint32Val uint32 uint64Val uint64 uintptrVal uintptr float32Val float32 float64Val float64 stringVal string bytesVal []byte runeVal rune complex64Val complex64 complex128Val complex128
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 20:25:13 UTC 2023 - 39.3K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/const.go
"unicode" "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/types" ) func roundFloat(v constant.Value, sz int64) constant.Value { switch sz { case 4: f, _ := constant.Float32Val(v) return makeFloat64(float64(f)) case 8: f, _ := constant.Float64Val(v) return makeFloat64(f) } base.Fatalf("unexpected size: %v", sz) panic("unreachable") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 10.5K bytes - Viewed (0) -
src/go/constant/value.go
case intVal: return x.val.Uint64(), x.val.IsUint64() case unknownVal: return 0, false default: panic(fmt.Sprintf("%v not an Int", x)) } } // Float32Val is like [Float64Val] but for float32 instead of float64. func Float32Val(x Value) (float32, bool) { switch x := x.(type) { case int64Val: f := float32(x) return f, int64Val(f) == x case intVal: f, acc := newFloat().SetInt(x.val).Float32()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0)