HaxeFoundation / HaxeFoundation/hxcpp

Math.sin is incorrect

Open
#1,194 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

Math.sin(pi) should return 0, and this is correct in base C++ standard math, but in hxcpp sin(pi) returns a really low number instead (~1.22e-14)
Would be nice to use standard pi for the pi definition so that stuff like this isn't an issue

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.