Talk:Netscript Data Types and Variables/@comment-98.28.101.137-20180129041913

In case it's useful to anyone else not familiar with Javascript, converting a number variable to a string works via toString.

string = number.toString;

And converting a string to a number works via Math.floor.

number = Math.floor(string);