Dividing to get a decimal
in
Programming Questions
•
7 months ago
If I want to store a value in a float, such as .75, only by dividing numbers (3 / 4), how can I do this. When I try to do this using the obvious methods (to me at least), float number = 3 / 4; it rounds down. Is there a way to do this? Thanks.
1