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

precisionFromString update #14206

Merged
merged 10 commits into from Jan 4, 2023
Merged

Conversation

ttodua
Copy link
Member

@ttodua ttodua commented Jul 4, 2022

base function precisionFromString works with such numbers '0.001' but not with '1e-3' .
so, this update is needed

@ttodua ttodua added the bug label Jul 4, 2022
@kroitor kroitor self-assigned this Jul 4, 2022
@ttodua
Copy link
Member Author

ttodua commented Jul 4, 2022

all methods / langs are ready now to be merged.

@kroitor kroitor added enhancement and removed bug labels Jul 5, 2022
@carlosmiei
Copy link
Collaborator

@ttodua the edits in this PR broke the build, can you take a look?
image

@ttodua ttodua closed this Dec 30, 2022
@ttodua ttodua reopened this Dec 30, 2022
@ttodua
Copy link
Member Author

ttodua commented Dec 30, 2022

@ttodua the edits in this PR broke the build, can you take a look?
hm, the reason turns out that digifinex provides precision strings like 1.1e-05 which were not handled in py base well. created a fix. will submit shortly.

return str.length * -1
}
// default strings like '0.0001'
const split = str.replace (/0+$/g, '').split ('.')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this 101th and next line was not touched.

@ttodua ttodua closed this Dec 30, 2022
@ttodua ttodua reopened this Dec 30, 2022
@ttodua
Copy link
Member Author

ttodua commented Dec 30, 2022

@carlosmiei fixed. please review now.

@carlosmiei
Copy link
Collaborator

LGTM ✅

@kroitor kroitor merged commit c45f54d into ccxt:master Jan 4, 2023
@ttodua ttodua deleted the precisionFromString-update branch January 7, 2023 09:32
@ttodua ttodua added important Higher priority and removed critical labels Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants