Unity-Technologies / Unity-Technologies/Unity.Mathematics

Add support for math.near_equal or similar to Mathf.Approximately

Open
#67 2 comments 3 reactions 1 assignee View on GitHub

@unpacklo is already working on this.

Since Jun 4, 2019.

enhancement
Dominant language
C#
Stars
1.4k
Forks
159
PR merge metrics
No merged PRs in 30d

Description

There is currently no helper methods exposed to compare two floating points that are approximately the same

What needs to be determined:

  • name of these methods (e.g near_equal...)
  • what kind of implementation do we want? (taking into account ULP or not? one version with more parameters?...)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.