Tiemen
Grand Master

- Joined
- Mar 21, 2010
- Sythe Gold
- 0
- Messages
- 3,913
I'm currently making a task for university but i cant find this in my sillabus anywhere :O
How can i round a double to a certain amount of digits?
I know the things like Math.floor, Math.ceil, Math.rint and Math.round....
So basically i want
1.111 instead of 1.1111111111111112
How can i round a double to a certain amount of digits?
I know the things like Math.floor, Math.ceil, Math.rint and Math.round....
So basically i want
1.111 instead of 1.1111111111111112

