Computer Science, asked by sahil196, 1 year ago

can we use float instead of int ..if yes why ....if no why not

Answers

Answered by braniest
2
yes we can use float in place of int

bcoz int is used for integers and float is used for decimal numbers
Answered by siddhartharao77
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.
Similar questions