Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage double numbers instead of float #49

Open
mgorchak-blackberry opened this issue Oct 18, 2021 · 0 comments
Open

Usage double numbers instead of float #49

mgorchak-blackberry opened this issue Oct 18, 2021 · 0 comments

Comments

@mgorchak-blackberry
Copy link

mgorchak-blackberry commented Oct 18, 2021

By default C compiler treats floating point numbers as double, so "1." is always converted to float, "1.f" should be used instead.

z_a = sqrtf(1. - vec2_mul_inner(a, a));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant