You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package goint
|
|
|
|
import (
|
|
"math"
|
|
"strconv"
|
|
)
|
|
|
|
// ToString int到string
|
|
func ToString(n int) string {
|
|
return strconv.Itoa(n)
|
|
}
|
|
|
|
// ToFloat64 int到float64
|
|
func ToFloat64(n int) float64 {
|
|
return float64(n) / math.Pow10(0)
|
|
}
|