From b1c22a800f35d0423d33d82bcf91f609e8d16ee7 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sun, 6 Mar 2022 16:34:37 +0100 Subject: [PATCH] fix some stuff in std --- std.isbpl | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/std.isbpl b/std.isbpl index 8a0e09d..0fa435d 100644 --- a/std.isbpl +++ b/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" #