Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Could you add Pow()? #10

Closed
ghost opened this issue Apr 23, 2017 · 3 comments
Closed

Could you add Pow()? #10

ghost opened this issue Apr 23, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 23, 2017

First off, thank you so much for this library. It's the only one that I've found that I've gotten working for my application.

The one thing that it's missing that I really need is to be able to calculate fractional powers, the same as Mathf.Pow() does. I've found at least one library that seems to do it in 32bit (https://github.com/jpernst/FixedPointy/blob/master/FixMath.cs) but I lack the mathematical/bit manipulation skill to add it to your library. I think the place where I get tripped up in the FixedPointy implementation is it uses long to get enough space when calculating Pow(), so I'm not sure what to do to add it to your library.

@asik
Copy link
Owner

asik commented Apr 28, 2017

Hey, just to say I noticed your request, unfortunately I don't know how to implement this any more than you do. I'd welcome a pull request for it.

@sam-vdp
Copy link

sam-vdp commented Feb 27, 2018

A bit late to the party, but I recently added that. Please see PR #12

@asik
Copy link
Owner

asik commented Mar 11, 2018

Added in 6dff437

@asik asik closed this as completed Mar 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants