This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
math_library [2022/04/29 23:16] max created |
math_library [2022/05/01 18:38] (current) max |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| * [[2D Vector]] | * [[2D Vector]] | ||
| * [[3D Vector]] | * [[3D Vector]] | ||
| - | * [[4D Vector]] | ||
| ===== Float comparison ===== | ===== Float comparison ===== | ||
| - | Floating-point numbers are almost always stored inaccurately in computers' | + | Floating-point numbers are almost always stored inaccurately in computers' |
| - | + | ||
| - | It also means that for example, 0.2 + 0.1 is not equal to 0.3; rather it is equal to 0.30000000000000004. | + | |
| - | Since computers are exact in comparison by default, you can see how you can run into issues with this. | + | |
| + | To learn which methods Impulse Physics offers to compare floating-point numbers, visit [[floating point comparison]]. | ||