- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,165 for float2 (0.23 sec)
-
guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java
Float[] suffix = {(float) 86, (float) 99}; Float[] all = concat(concat(prefix, elements), suffix); return asList(all).subList(2, elements.length + 2); } } private static Float[] concat(Float[] left, Float[] right) { Float[] result = new Float[left.length + right.length]; System.arraycopy(left, 0, result, 0, left.length); System.arraycopy(right, 0, result, left.length, right.length);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jun 01 09:32:35 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/minmax.go
if y > x { return y } return x } func fmin32(x, y float32) float32 { return fmin(x, y) } func fmin64(x, y float64) float64 { return fmin(x, y) } func fmax32(x, y float32) float32 { return fmax(x, y) } func fmax64(x, y float64) float64 { return fmax(x, y) } type floaty interface{ ~float32 | ~float64 } func fmin[F floaty](x, y F) F { if y != y || y < x { return y } if x != x || x < y || x != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 18:15:22 UTC 2023 - 1.5K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
return cmp.Compare(aVal.Uint(), bVal.Uint()) case reflect.String: return cmp.Compare(aVal.String(), bVal.String()) case reflect.Float32, reflect.Float64: return cmp.Compare(aVal.Float(), bVal.Float()) case reflect.Complex64, reflect.Complex128: a, b := aVal.Complex(), bVal.Complex() if c := cmp.Compare(real(a), real(b)); c != 0 { return c }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
test/fixedbugs/issue11945.go
_ int = real(2.0) _ int = real(3i) _ float32 = real(1) _ float32 = real('a') _ float32 = real(2.1) _ float32 = real(3.2i) _ float64 = real(1) _ float64 = real('a') _ float64 = real(2.1) _ float64 = real(3.2i) _ int = imag(1) _ int = imag('a') _ int = imag(2.1 + 3i) _ int = imag(3i) _ float32 = imag(1) _ float32 = imag('a') _ float32 = imag(2.1 + 3.1i) _ float32 = imag(3i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 26 01:50:30 UTC 2021 - 1.6K bytes - Viewed (0) -
test/cmplx.go
// Verify that incorrect invocations of the complex predeclared function are detected. // Does not compile. package main type ( Float32 float32 Float64 float64 Complex64 complex64 Complex128 complex128 ) var ( f32 float32 f64 float64 F32 Float32 F64 Float64 c64 complex64 c128 complex128 C64 Complex64 C128 Complex128 ) func F1() int { return 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 21:00:20 UTC 2019 - 1.4K bytes - Viewed (0) -
src/database/sql/driver/types.go
case reflect.Uint64: u64 := rv.Uint() if u64 >= 1<<63 { return nil, fmt.Errorf("uint64 values with high bit set are not supported") } return int64(u64), nil case reflect.Float32, reflect.Float64: return rv.Float(), nil case reflect.Bool: return rv.Bool(), nil case reflect.Slice: ek := rv.Type().Elem().Kind() if ek == reflect.Uint8 { return rv.Bytes(), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 16:30:20 UTC 2024 - 8.8K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/FloatsMethodsForWeb.java
import jsinterop.annotations.JsPackage; /** Web specializations for {@link Floats} methods. */ public abstract class FloatsMethodsForWeb { @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL) public static native float min(float... array); @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL) public static native float max(float... array);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Oct 26 00:50:12 UTC 2023 - 1K bytes - Viewed (0) -
test/fixedbugs/bug470.go
import "fmt" const ( F32 = 0.00999999977648258209228515625 F64 = 0.01000000000000000020816681711721685132943093776702880859375 ) var F = float64(float32(0.01)) func main() { // 0.01 rounded to float32 then to float64 is F32. // 0.01 represented directly in float64 is F64. if F != F32 { panic(fmt.Sprintf("F=%.1000g, want %.1000g", F, F32)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 608 bytes - Viewed (0) -
src/runtime/float_test.go
0x8234508000000001, // from issue48807 1<<56 + 1<<32 + 1, } { got := float32(i) dontwant := float32(float64(i)) if got == dontwant { // The test cases above should be uint64s such that // this equality doesn't hold. These examples trigger // the case where using an intermediate float64 doesn't work. t.Errorf("direct float32 conversion doesn't work: arg=%x got=%x dontwant=%x", i, got, dontwant) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 07 18:34:24 UTC 2021 - 699 bytes - Viewed (0) -
test/nilptr5_wasm.go
// license that can be found in the LICENSE file. // Test that nil checks are removed. // Optimization is enabled. package p func f5(p *float32, q *float64, r *float32, s *float64) float64 { x := float64(*p) // ERROR "generated nil check" y := *q // ERROR "generated nil check" *r = 7 // ERROR "generated nil check" *s = 9 // ERROR "generated nil check" return x + y
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 813 bytes - Viewed (0)