You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When contributing to this repository, please first discuss the change you wish to make via issue,
4
-
email, or any other method with the owners of this repository before making a change.
3
+
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
5
4
6
5
Please note we have a code of conduct, please follow it in all your interactions with the project.
7
6
8
7
## Pull Request Process
9
8
10
-
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
11
-
build.
12
-
2. Update the README.md with details of changes to the interface, this includes new environment
13
-
variables, exposed ports, useful file locations and container parameters.
14
-
3. Increase the version numbers in any examples files and the README.md to the new version that this
15
-
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
16
-
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
17
-
do not have permission to do that, you may request the second reviewer to merge it for you.
9
+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a build.
10
+
2. Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters.
11
+
3. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
12
+
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.
18
13
19
14
## Code of Conduct
20
15
21
16
### Our Pledge
22
17
23
-
In the interest of fostering an open and welcoming environment, we as
24
-
contributors and maintainers pledge to making participation in our project and
25
-
our community a harassment-free experience for everyone, regardless of age, body
26
-
size, disability, ethnicity, gender identity and expression, level of experience,
27
-
nationality, personal appearance, race, religion, or sexual identity and
28
-
orientation.
18
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
29
19
30
20
### Our Standards
31
21
32
-
Examples of behavior that contributes to creating a positive environment
33
-
include:
22
+
Examples of behavior that contributes to creating a positive environment include:
34
23
35
24
* Using welcoming and inclusive language
36
25
* Being respectful of differing viewpoints and experiences
@@ -40,53 +29,31 @@ include:
40
29
41
30
Examples of unacceptable behavior by participants include:
42
31
43
-
* The use of sexualized language or imagery and unwelcome sexual attention or
44
-
advances
32
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
45
33
* Trolling, insulting/derogatory comments, and personal or political attacks
46
34
* Public or private harassment
47
-
* Publishing others' private information, such as a physical or electronic
48
-
address, without explicit permission
49
-
* Other conduct which could reasonably be considered inappropriate in a
50
-
professional setting
35
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
36
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
51
37
52
38
### Our Responsibilities
53
39
54
-
Project maintainers are responsible for clarifying the standards of acceptable
55
-
behavior and are expected to take appropriate and fair corrective action in
56
-
response to any instances of unacceptable behavior.
40
+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
57
41
58
-
Project maintainers have the right and responsibility to remove, edit, or
59
-
reject comments, commits, code, wiki edits, issues, and other contributions
60
-
that are not aligned to this Code of Conduct, or to ban temporarily or
61
-
permanently any contributor for other behaviors that they deem inappropriate,
62
-
threatening, offensive, or harmful.
42
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
63
43
64
44
### Scope
65
45
66
-
This Code of Conduct applies both within project spaces and in public spaces
67
-
when an individual is representing the project or its community. Examples of
68
-
representing a project or community include using an official project e-mail
69
-
address, posting via an official social media account, or acting as an appointed
70
-
representative at an online or offline event. Representation of a project may be
71
-
further defined and clarified by project maintainers.
46
+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
72
47
73
48
### Enforcement
74
49
75
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
76
-
reported by contacting the project team at `david.oravsky@gmail.com`. All
77
-
complaints will be reviewed and investigated and will result in a response that
78
-
is deemed necessary and appropriate to the circumstances. The project team is
79
-
obligated to maintain confidentiality with regard to the reporter of an incident.
80
-
Further details of specific enforcement policies may be posted separately.
50
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at `david.oravsky@gmail.com`. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
81
51
82
-
Project maintainers who do not follow or enforce the Code of Conduct in good
83
-
faith may face temporary or permanent repercussions as determined by other
84
-
members of the project's leadership.
52
+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
85
53
86
54
### Attribution
87
55
88
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
89
-
available at [http://contributor-covenant.org/version/1/4][version]
56
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
**Fixed64** is the core data type representing fixed-point numbers. It provides various mathematical operations, including addition, subtraction, multiplication, division, and more.
157
+
**Fixed64** is the core data type representing fixed-point numbers. It provides various mathematical operations, including addition, subtraction, multiplication, division, and more.
152
158
The struct guarantees deterministic behavior by using integer-based arithmetic with a configurable `SHIFT_AMOUNT`.
153
159
154
160
---
155
161
156
162
## ⚡ Performance Considerations
157
163
158
164
FixedMathSharp is optimized for high-performance deterministic calculations:
165
+
159
166
- **Inline methods and bit-shifting optimizations** ensure minimal overhead.
160
167
- **Eliminates floating-point drift**, making it ideal for lockstep simulations.
161
168
- **Supports fuzzy equality comparisons**for handling minor precision deviations.
@@ -164,10 +171,11 @@ FixedMathSharp is optimized for high-performance deterministic calculations:
164
171
165
172
## 🧪 Testing and Validation
166
173
167
-
Unit tests are used extensively to validate the correctness of mathematical operations.
174
+
Unit tests are used extensively to validate the correctness of mathematical operations.
168
175
Special **fuzzy comparisons** are employed where small precision discrepancies might occur, mimicking floating-point behavior.
169
176
170
177
To run the tests:
178
+
171
179
```bash
172
180
dotnet test --configuration debug
173
181
```
@@ -187,10 +195,6 @@ dotnet test --configuration debug
187
195
188
196
We welcome contributions! Please see our [CONTRIBUTING](https://github.com/mrdav30/FixedMathSharp/blob/main/CONTRIBUTING.md) guide for details on how to propose changes, report issues, and interact with the community.
189
197
190
-
## 📄 License
191
-
192
-
This project is licensed under the MIT License - see the [LICENSE](https://github.com/mrdav30/FixedMathSharp/blob/main/LICENSE.md) for details.
193
-
194
198
---
195
199
196
200
## 👥 Contributors
@@ -211,3 +215,13 @@ For bug reports or feature requests, please open an issue in this repository.
211
215
We welcome feedback, contributors, and community discussion across all projects.
212
216
213
217
---
218
+
219
+
## License
220
+
221
+
This project is licensed under the MIT License.
222
+
223
+
See the following files for details:
224
+
225
+
- LICENSE – standard MIT license
226
+
- NOTICE – additional terms regarding project branding and redistribution
0 commit comments