SyntaxFix
Write A Post
Hire A Developer
Questions
If you initialize both the parameters as float, you will sure get actual divided value. For example:
float
float RoomWidth, TileWidth, NumTiles; RoomWidth = 142; TileWidth = 8; NumTiles = RoomWidth/TileWidth;
Ans:17.75.