- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleBinaryOp (0.32 sec)
-
src/go/constant/example_test.go
// Output: // // Could not represent real part 25.3 exactly as float64 // literal (25.3+55i) // go/constant (25.3 + 55i) // complex128 (25.299999999999997+55i) } func ExampleBinaryOp() { // 11 / 0.5 a := constant.MakeUint64(11) b := constant.MakeFloat64(0.5) c := constant.BinaryOp(a, token.QUO, b) fmt.Println(c) // Output: 22 } func ExampleUnaryOp() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K bytes - Viewed (0)