I don't see your implementation of tostring()
coded. You must code your own implementation of tostring()
.
The function will get the number, convert it to a string and return the string. You can use stream
, itoa
or sprintf
.
If there is any native tostring()
method elsewhere, check that the S of "string" surely will be uppercase instead of lowercase (toString()
).