+ 1
What is string and floats
4 Antworten
+ 2
So, to elaborate on the earlier poster's answer.. A STRING is literally a "string" of characters. A letter, a sentence, anything that is not a "value" .. A FLOAT is just a number with a decimal. As an INT is a whole number (no decimal) - a FLOAT is basically like an INT but with a decimal.
+ 1
Strings are text between quotes "this is a string" 'it too'
Floats are floating point numbers 5.5
3.0 6.785
+ 1
strings can be a letter , number(without a value) anything.basically it's just a text. floats are the numbers that has a decimal point. eg: 9.678543489,36.0
+ 1
String: Anything in between quotes (single or double, same thing either way)
Float: A decimal number such as 5.6, 2.17378, or 9.973
BTW thanks for answering my question on classes