mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
compiler: add complex manipulation
* builtins: real, imag, complex * printing of complex numbers No support for complex arithmetic yet.
This commit is contained in:
Vendored
+3
@@ -29,6 +29,9 @@ func main() {
|
||||
// print float64
|
||||
println(3.14)
|
||||
|
||||
// print complex128
|
||||
println(5+1.2345i)
|
||||
|
||||
// print interface
|
||||
println(interface{}(nil))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user