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

Implement builtins.floor and builtins.ceil using the C library functions internally #4787

Merged
merged 2 commits into from May 10, 2021

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented May 10, 2021

Closes #4782

Note: even though the type is internally called NixFloat, it's
actually a double.

cc @edolstra @jonringer

…nctions internally

Closes NixOS#4782

Note: even though the type is internally called `NixFloat`, it's
actually a `double`.
src/libexpr/primops.cc Outdated Show resolved Hide resolved
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
@Ma27
Copy link
Member Author

Ma27 commented May 10, 2021

@edolstra thanks! applied the suggestion via github :)

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was quick :). Awesome!

@edolstra edolstra merged commit 8768398 into NixOS:master May 10, 2021
@Ma27 Ma27 deleted the builtins-ceil-floor branch May 10, 2021 18:56
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

Successfully merging this pull request may close these issues.

Add builtins.floor and builtins.ceiling
3 participants