Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Barsukov
zGo
Commits
9a36fac2
Commit
9a36fac2
authored
Jun 12, 2024
by
Vladimir Barsukov
Browse files
parse num
parent
0702ebcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
zutils/parse.go
0 → 100644
View file @
9a36fac2
package
zutils
import
"strconv"
func
ParseFloat
(
s
string
)
float64
{
f
,
_
:=
strconv
.
ParseFloat
(
s
,
64
)
return
f
}
func
ParseInt
(
s
string
)
int
{
f
,
_
:=
strconv
.
ParseInt
(
s
,
10
,
32
)
return
int
(
f
)
}
func
ParseInt64
(
s
string
)
int64
{
f
,
_
:=
strconv
.
ParseInt
(
s
,
10
,
64
)
return
f
}
func
ParseUInt
(
s
string
)
uint64
{
f
,
_
:=
strconv
.
ParseUint
(
s
,
10
,
64
)
return
f
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment