Skip to content

Fix negative float to integer truncation#79

Merged
MerlinVR merged 6 commits intovrchat-community:masterfrom
ureishi:fix-float-to-int-truncation
Nov 30, 2022
Merged

Fix negative float to integer truncation#79
MerlinVR merged 6 commits intovrchat-community:masterfrom
ureishi:fix-float-to-int-truncation

Conversation

@ureishi
Copy link
Copy Markdown

@ureishi ureishi commented Nov 16, 2022

Change the method for casting floats to integers from Mathf.Floor to Math.Truncate.
Same result as C# when casting a negative floating point number to an integer.

@MerlinVR MerlinVR self-requested a review November 16, 2022 08:52
@MerlinVR MerlinVR merged commit 73a7b24 into vrchat-community:master Nov 30, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2022
@ureishi ureishi deleted the fix-float-to-int-truncation branch December 11, 2022 10:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants