can we use float instead of int ..if yes why ....if no why not
Answers
Answered by
2
yes we can use float in place of int
bcoz int is used for integers and float is used for decimal numbers
bcoz int is used for integers and float is used for decimal numbers
Answered by
1
Yes but don't use a float unless you have a need.
Note: Floats are used to store a wider range of number that can be fit in an integer.
Note: Floats are used to store a wider range of number that can be fit in an integer.
Similar questions
Math,
7 months ago
Science,
1 year ago
Science,
1 year ago
Social Sciences,
1 year ago
Science,
1 year ago