1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4 5 package strconv
6 7 // FormatComplex converts the complex number c to a string of the
8 // form (a+bi) where a and b are the real and imaginary parts,
9 // formatted according to the format fmt and precision prec.
10 //
11 // The format fmt and precision prec have the same meaning as in [FormatFloat].
12 // It rounds the result assuming that the original was obtained from a complex
13 // value of bitSize bits, which must be 64 for complex64 and 128 for complex128.
14 func FormatComplex(re, im float64, fmt byte, prec, bitSize int) []byte {
15 panic("moxie: complex numbers not supported")
16 }
17