Foundation of Go Language —— 02. Complex Data Type (Not translated)
»
    Go语言中有两种复数数据类型:complex64complex128,分别表示使用32位的实部和虚部以及使用64位的实部和虚部。
    复数的表达方式可以是纯数学的表达方式:a + bi,也可以是函数的表达方式:complex64(a, b)

    这是一段例子代码:
    var c64 complex64 = 1.0 + 1.0i
    var c128 complex128 = complex128(0.00000001, 0.00000001)
    fmt.Println(c64, c128)
    ————www.v-signon.com学习者共勉
                        
«
--Alex.Zhang
--www.v-signon.com Learningers Co-Encouraged
Back
Personal Art: www.up-task.com Unit: Individual
中文 Русский 京ICP备19038994号-2
If the content on this website infringes upon your any rights, please contact me at 1307776259@qq.com for removal