Skip to content

Instantly share code, notes, and snippets.

@gonzaloruizdevilla
Created March 20, 2012 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gonzaloruizdevilla/2138095 to your computer and use it in GitHub Desktop.
Save gonzaloruizdevilla/2138095 to your computer and use it in GitHub Desktop.
Integer to string. Good way
2..toString(); // el segundo punto se reconoce correctamente
2 .toString(); // fíjate en el espacio a la izquierda del punto
(2).toString(); // los paréntesis fuerzan a que el número 2 se evalúe primero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment