fix some stuff in std

This commit is contained in:
Daniella / Tove 2022-03-06 16:34:37 +01:00
parent 7d8c9d0938
commit b1c22a800f

View file

@ -88,19 +88,19 @@ func _string {
object TYPE_STRING settype object TYPE_STRING settype
} }
object isbyte if { object isbyte if {
itos =object object itos =object
} }
object isint if { object isint if {
itos =object object itos =object
} }
object isfloat if { object isfloat if {
ftoi =object object ftoi =object
} }
object islong if { object islong if {
ltoi =object object ltoi =object
} }
object isdouble if { object isdouble if {
dtoi =object object dtoi =object
} }
object isarray if { object isarray if {
@ -116,6 +116,14 @@ func isstring {
gettype typename "string" eq gettype typename "string" eq
} }
func stoi {
stol _int
}
func stof {
stod _float
}
func itos { func itos {
_long ltos _long ltos
} }
@ -128,6 +136,10 @@ func dtos {
"NotImplemented" "dtos is not implemented" throw "NotImplemented" "dtos is not implemented" throw
} }
func stod {
"NotImplemented" "stod is not implemented" throw
}
"Number to string" # "Number to string" #
func ltos { func ltos {
def n =n "bind number" # def n =n "bind number" #