hey guys, so im going through ASDG, page by page, and learning everything from scratch. he’s explaining datatypes, i.e. strings, numbers, booleans, arrays, etc…i get that. then he goes into explaining how to convert datatypes from numbers to strings using “toString” , and then strings to numbers using “Number()”…and then later, strings to booleans and stuff. My question is this. could some one please explain to me a situation where someone would want to turn a number into a string or a string into a number?and how would someone even turn a string into a number? i dont understand how that works.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Question about converting datatypes
|
5 | 34 | October 4, 2004 | |
String to Number
|
0 | 43 | August 25, 2006 | |
Int/uint/num?
|
0 | 88 | November 4, 2009 | |
How do you set the type(:Number, :Boolean, etc) of an Array?
|
0 | 96 | July 29, 2008 | |
"Number of a string VS Number of a number" AKA Conversion problems, help! | 0 | 123 | July 14, 2011 |