-
Notifications
You must be signed in to change notification settings - Fork 26
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
RFC: Nim Math functions #92
Comments
I think it makes sense to include everything that is in ISO 99. Please create a PR to do so if you've got some time. |
An equivalent to |
we should have a Then std/math can import it but also work cross-backend with high-level portable wrappers that work in c,cpp,js,vm,nimscript backends. EDIT: refs nim-lang/Nim#16179 (comment) |
This comment was marked as outdated.
This comment was marked as outdated.
type RoundMode = enum rTowardsZero, ...
proc roundTo(x: SomeFloat, T: typedesc[SomeNumber], mode: static RoundMode): T
# or:
proc roundToInt(x: SomeFloat, mode: static RoundMode): int which would map to one of the many |
Stock-take of Math functions
This is a comparison of math functions, with the aim of helping to identify if any functions are missing that may need to be added, etc. (in preparation for Nim V1.0)
Don't assume I correctly identified the Nim math functions (I may have missed some, or are available in other Nimble packages).
(the base table came from http://www.johndcook.com/blog/math_h/ )
links
The text was updated successfully, but these errors were encountered: