This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 4rpl:commands:approximately [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:approximately [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | < | + | < |
| + | <= [[4rpl: | ||
| ====== approximately ====== | ====== approximately ====== | ||
| Line 8: | Line 9: | ||
| Compares two floating point values and returns true if they are similar. | Compares two floating point values and returns true if they are similar. | ||
| - | Floating point imprecision makes comparing floats using the equals operator inaccurate. For example, (1.0 == 10.0 / 10.0) might not return true every time. Approximately() compares two floats and returns true if they are within a small value (Epsilon*) of each other. | + | Floating point imprecision makes comparing floats using the equals operator inaccurate. For example, (1.0 == 10.0 / 10.0) might not return true every time. Approximately() compares two floats and returns true if they are within a small value (//Epsilon//((Epsilon is defined as: The smallest value that a float can have different from zero.))) of each other. |
| - | See [[http:%%//%%docs.unity3d.com/ | + | See [[https:// |
| - | *Epsilon is defined as: The smallest value that a float can have different from zero. | + | If you came to this documentation for an API to handle an approximation that's much larger than (// |
| ===== Examples ===== | ===== Examples ===== | ||