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

Problem with decimal places #67

Closed
GENiALi opened this issue Oct 9, 2014 · 2 comments
Closed

Problem with decimal places #67

GENiALi opened this issue Oct 9, 2014 · 2 comments

Comments

@GENiALi
Copy link

GENiALi commented Oct 9, 2014

Hi

I've a problem with this method.
DiscreteAmount.roundedCountForBasis(price, market.getPriceBasis())

The variable price is 7.6E-7.
DiscreteAmount.roundedCountForBasis(price, market.getPriceBasis()) return 75. Thats not good.
I guess that I must market.getPriceBasis() change.

But where should/can I change this?

Exchange Cryptsy, DOGE/BTC

@timolson
Copy link
Owner

timolson commented Oct 9, 2014

Nice catch. Fixed.

@GENiALi
Copy link
Author

GENiALi commented Oct 9, 2014

perfect
+1

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