Skip to main content Accessibility Feedback

Numbers

Number.toString()

Convert a number to a string.

var pi = 3.14;
var eleven = 11;

// returns "3.14"
pi.toString();

// returns "11"
eleven.toString();

Works back to at least IE6.