complexconv

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2020 License: MIT Imports: 5 Imported by: 2

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatComplex

func FormatComplex(c complex128) string

FormatComplex returns the string representation of c.

func ParseComplex

func ParseComplex(s string, bitSize int) (complex128, error)

ParseComplex returns the complex value represented by the string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL