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

powd / powf result differ from regular rust pow and other online calculators #690

Open
SamuelRamond opened this issue Nov 8, 2024 · 0 comments

Comments

@SamuelRamond
Copy link

I was wondering if this miss match vs rust regular pow in result was expected ?

println!("{}", dec!(2.).powd(dec!(3.2)));
# 9.189586821131990468278294299
println!("{}", dec!(2.).powf(3.2));
# 9.189586821131990468278294299

let a: f64 = 2.;
println!("{}", a.powf(3.2));
# 9.18958683997628

also checking a few calculator online seems to be in favor of regular rust response:
image
image
image
Iphone calculator also match google and co

Is there something i'm missing ?

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