Categorygithub.com/andot/complexconv
modulepackage
1.0.0
Repository: https://github.com/andot/complexconv.git
Documentation: pkg.go.dev

# README

complexconv

ParseComplex returns the complex value represented by the string.

import complexconv

func main() {
	fmt.Println(complexconv.ParseComplex("3.14159 + 2.71828i", 128))
}

FormatComplex returns the string representation of complex.

import complexconv

func main() {
	fmt.Println(complexconv.FormatComplex(3.14159 + 2.71828i))
}

# Functions

FormatComplex returns the string representation of c.
ParseComplex returns the complex value represented by the string.