From c84318bf6be06718ce98085cbb8b95fd5edaeab9 Mon Sep 17 00:00:00 2001 From: Bowero Date: Tue, 25 Jun 2019 11:16:55 +0200 Subject: [PATCH] Removed float types --- builtin/string.v | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/builtin/string.v b/builtin/string.v index 578fc4e3fc..1dc4734e2e 100644 --- a/builtin/string.v +++ b/builtin/string.v @@ -138,7 +138,6 @@ pub fn (s string) replace(rep, with string) string { return tos(b, new_len) } -// Casting to numbers (integers and floats) fn (s string) to_i() int { return C.atoi(s.str) } @@ -151,18 +150,6 @@ fn (s string) i32() int { return s.to_i() } -fn (s string) to_float() float { - return C.atof(s.str) -} - -fn (s string) float() float { - return s.to_float() -} - -fn (s string) f32() float { - return s.to_float() -} - // == fn (s string) eq(a string) bool { if isnil(s.str) {