fix some stuff in std
This commit is contained in:
parent
7d8c9d0938
commit
b1c22a800f
1 changed files with 17 additions and 5 deletions
22
std.isbpl
22
std.isbpl
|
@ -88,19 +88,19 @@ func _string {
|
|||
object TYPE_STRING settype
|
||||
}
|
||||
object isbyte if {
|
||||
itos =object
|
||||
object itos =object
|
||||
}
|
||||
object isint if {
|
||||
itos =object
|
||||
object itos =object
|
||||
}
|
||||
object isfloat if {
|
||||
ftoi =object
|
||||
object ftoi =object
|
||||
}
|
||||
object islong if {
|
||||
ltoi =object
|
||||
object ltoi =object
|
||||
}
|
||||
object isdouble if {
|
||||
dtoi =object
|
||||
object dtoi =object
|
||||
}
|
||||
|
||||
object isarray if {
|
||||
|
@ -116,6 +116,14 @@ func isstring {
|
|||
gettype typename "string" eq
|
||||
}
|
||||
|
||||
func stoi {
|
||||
stol _int
|
||||
}
|
||||
|
||||
func stof {
|
||||
stod _float
|
||||
}
|
||||
|
||||
func itos {
|
||||
_long ltos
|
||||
}
|
||||
|
@ -128,6 +136,10 @@ func dtos {
|
|||
"NotImplemented" "dtos is not implemented" throw
|
||||
}
|
||||
|
||||
func stod {
|
||||
"NotImplemented" "stod is not implemented" throw
|
||||
}
|
||||
|
||||
"Number to string" #
|
||||
func ltos {
|
||||
def n =n "bind number" #
|
||||
|
|
Loading…
Reference in a new issue