225k views
3 votes
Which data type is 2.5?
single
int
float
string

1 Answer

4 votes

2.5 is an example of a float.

Floats are numbers that have decimals.

User Shu Ding
by
5.4k points