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

Decimal places on allele frequency being printed #6

Open
OJWatson opened this issue Mar 4, 2020 · 0 comments
Open

Decimal places on allele frequency being printed #6

OJWatson opened this issue Mar 4, 2020 · 0 comments

Comments

@OJWatson
Copy link
Owner

OJWatson commented Mar 4, 2020

for (x=1;x<=k;x++) fprintf(V0,"\t%.6f", P[x]);

Add a parameter to control this, as it will save a lot of file memory:

int d = 2; // number of dp
// fprintf(V0, "%.*f", d, P[x]);
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

1 participant