0

I'm don't get string's

6th Sep 2016, 10:20 AM
Ivan Navea
Ivan Navea - avatar
2 Answers
+ 1
Strings are basically just text, text that is meaningless in terms of mathematical value. They can be added and multiplied (not sure about subtracted but pretty sure you can't) as in "eggs" * 3 = "eggseggseggs", but whether you have "eggs" or "bacon" as your string variable makes no difference to the programme. Integers and floats on the other hand have value based on what they are; 4 is twice as much as 2, which is not true for the string variables. "7" (a number as a string variable) is basically you telling the programme this is not a mathematical number, this is like a letter. However, "7" as a string variable can be converted into integer or float form, where then it being 7 makes a difference from being 5 for example.
6th Sep 2016, 10:26 AM
Na'im Zerbes
Na'im Zerbes - avatar
+ 1
to simplify that.. A string is just a word
6th Sep 2016, 12:39 PM
Muerte Exe
Muerte Exe - avatar