Contact: aviboots(AT)netvision.net.il
39,855 questions
51,776 answers
573 users
package main import ( "fmt" "math" ) func main() { d := 3.14 fraction, exponent := math.Frexp(d) fmt.Printf("fraction = %.3f exponent = %d\n", fraction, exponent) } /* run: fraction = 0.785 exponent = 2 */