Commit 5528fd07 authored by Vladimir Barsukov's avatar Vladimir Barsukov
Browse files

parse num

parent 9a36fac2
...@@ -7,6 +7,11 @@ func ParseFloat(s string) float64 { ...@@ -7,6 +7,11 @@ func ParseFloat(s string) float64 {
return f return f
} }
func ParseFloatN(s string, bitSize int) float64 {
f, _ := strconv.ParseFloat(s, bitSize)
return f
}
func ParseInt(s string) int { func ParseInt(s string) int {
f, _ := strconv.ParseInt(s, 10, 32) f, _ := strconv.ParseInt(s, 10, 32)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment