Floating point numbers are approximations of real numbers that use a form of scientific notation to store significant figures and an exponent. Use this tag for questions that pertain to the use of floating point numbers in games.
Questions tagged [floating-point]
60 questions
5
votes
5 answers
Are very long floating point numbers a problem?
Very simple question, but important: I was using a floating point number ('float') in C++ to handle movement speed, and it suddenly ran crazy. It turns out the speed increased very fast to 259614846795304004193338175520768.0. That's 33 digits, on a…

Henry Stone
- 215
- 2
- 9
4
votes
4 answers
Conversion of a number from Single precision floating point representation to a Half precision floating point
Hope it is relevant here.
I have a code where I have to work on Half precision floating point representation
numbers. To achieve that I have created my own C++ class fp16 with all operators(arithmetic logical, relational) related to this type…

goldenmean
- 141
- 1
- 3
0
votes
1 answer
Dealing with Floating Point precision in a Minecraft-like game
As far as I know, you can walk for 30 million meters in either direction in Minecraft to reach the end of the world.
My question is, how does Minecraft handle loss of precision when dealing with player position (especially in multiplayer)?
And how…

Moons
- 103
- 3