-
Notifications
You must be signed in to change notification settings - Fork 177
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
Small sections about performing math functionality #306
Comments
That is correct. It would be great if you could contribute that small section about this in a PR. |
Unfortunately, I'm not an expert (yet), I only stumbled upon this when trying to do floating point calculation on a MCU. I could try to get some information about which math operations are allowed and which ones are reserved to |
A related RFC can be found here: rust-lang/rfcs#2505 |
Correct me if I am missing any information, but I was not able to use some standard float operations like
floor
andceil
and I required those when calculating register values for a HAL. Am I missing a necessary import for this? I now added thelibm
dependency and was able to use thefloorf
functions for my purposes, but I think not being able to use functions likefloor
is related to having the#[no_std]
attribute on the application?If that is the case, it might be worth an idea to add a small section related to how to perform some basic math operations which are reserved to
std
normallyThe text was updated successfully, but these errors were encountered: