decimal icon indicating copy to clipboard operation
decimal copied to clipboard

pow(0.5) is not working

Open huahuayu opened this issue 3 years ago • 7 comments

hi, pow(0.5) is not working that is say sqrt() is not working, I see someone has raised PR, why not merge it?

huahuayu avatar Mar 17 '21 13:03 huahuayu

Hi! Yup, Pow still misfunction. As far as I remember I didn't merge PR with sqrt as it was missing unit tests. I can check if this functionality is working correctly and if so merge it to master and write tests itself. Will check in the free time.

mwoss avatar Mar 17 '21 21:03 mwoss

how it's going?

huahuayu avatar Mar 24 '21 02:03 huahuayu

Sorry, I had no time to do anything with decimal last week. I will try to validate the correctness of implementation #130 tomorrow.

mwoss avatar Mar 25 '21 00:03 mwoss

Sorry, I had no time to do anything with decimal last week. I will try to validate the correctness of implementation #130 tomorrow.

don't worry, take your time.

huahuayu avatar Mar 25 '21 02:03 huahuayu

do not work for me also

LexRiver avatar Jun 30 '21 17:06 LexRiver

Yes, that's right. This issue is still not fixed. I was working on that some time ago and I've already prepared an implementation of exp funcs #229 that will be used for proper Pow implementation, but I had to switch my focus lately on my Master Thesis. I will get back to it after the defense.

mwoss avatar Jul 01 '21 07:07 mwoss

I've finally implemented an improved Pow method. Please take a look at this comment: https://github.com/shopspring/decimal/issues/55#issuecomment-2033204145

mwoss avatar Apr 02 '24 22:04 mwoss