Removed float types
parent
90c55cd4dc
commit
c84318bf6b
|
@ -138,7 +138,6 @@ pub fn (s string) replace(rep, with string) string {
|
||||||
return tos(b, new_len)
|
return tos(b, new_len)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Casting to numbers (integers and floats)
|
|
||||||
fn (s string) to_i() int {
|
fn (s string) to_i() int {
|
||||||
return C.atoi(s.str)
|
return C.atoi(s.str)
|
||||||
}
|
}
|
||||||
|
@ -151,18 +150,6 @@ fn (s string) i32() int {
|
||||||
return s.to_i()
|
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 {
|
fn (s string) eq(a string) bool {
|
||||||
if isnil(s.str) {
|
if isnil(s.str) {
|
||||||
|
|
Loading…
Reference in New Issue