+ 1

What is string and floats

11th Jul 2017, 12:53 AM
Harsh Kumar
Harsh Kumar - avatar
4 Respuestas
+ 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.
11th Jul 2017, 1:02 AM
Jay Burna
Jay Burna - avatar
+ 1
Strings are text between quotes "this is a string" 'it too' Floats are floating point numbers 5.5 3.0 6.785
11th Jul 2017, 12:55 AM
Andrés04_ve
Andrés04_ve - avatar
+ 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
11th Jul 2017, 2:41 AM
Suhi Kun
Suhi Kun - avatar
+ 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
11th Jul 2017, 3:41 AM
Matt T