Skip to content

go package for converting complex numbers to/from strings

License

Notifications You must be signed in to change notification settings

andot/complexconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))
}

About

go package for converting complex numbers to/from strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages