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

Exponent math function ** operation not supported #1060

Closed
vanboom opened this issue Aug 11, 2023 · 2 comments
Closed

Exponent math function ** operation not supported #1060

vanboom opened this issue Aug 11, 2023 · 2 comments

Comments

@vanboom
Copy link

vanboom commented Aug 11, 2023

Example:

Money.new(1000, "USD") ** 2

NoMethodError (undefined method `**' for #<Money fractional:1000.0 currency:USD>
Did you mean?  *)

Enabling this may support statistical analysis on arrays of money objects such as std dev and sample variance.

@semmons99
Copy link
Member

I do not believe you can raise money to money. can you give me an example where we would work with such a function?

@semmons99
Copy link
Member

I may be misunderstanding the intention in the PR versus this issue. let's discuss in the PR please

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

2 participants