diff --git a/j/string.j b/j/string.j index 39f76e5e33e7a..d1cd1fcf6ae49 100644 --- a/j/string.j +++ b/j/string.j @@ -897,6 +897,9 @@ bits(x::Union(Int64,Uint64,Float64)) = bin(reinterpret(Uint64,x), 64) num2hex(x::Integer) = hex(unsigned(x), sizeof(x)*2) +string(x::Signed) = dec(int64(x)) +cstring(x::Signed) = dec(int64(x)) + ## string to float functions ## function float64_isvalid(s::String, out::Array{Float64,1})