Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleFloat_Scan (0.11 sec)

  1. src/math/big/example_test.go

    	i := new(big.Int)
    	_, err := fmt.Sscan("18446744073709551617", i)
    	if err != nil {
    		log.Println("error scanning value:", err)
    	} else {
    		fmt.Println(i)
    	}
    	// Output: 18446744073709551617
    }
    
    func ExampleFloat_Scan() {
    	// The Scan function is rarely used directly;
    	// the fmt package recognizes it as an implementation of fmt.Scanner.
    	f := new(big.Float)
    	_, err := fmt.Sscan("1.19282e99", f)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 26 16:15:32 UTC 2020
    - 4K bytes
    - Viewed (0)
Back to top