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

printf fakes numbers, which fails for large values #21

Open
philshafer opened this issue Apr 10, 2014 · 0 comments
Open

printf fakes numbers, which fails for large values #21

philshafer opened this issue Apr 10, 2014 · 0 comments
Assignees
Labels

Comments

@philshafer
Copy link
Contributor

I cheat with printf, and use xsltPopString() to pull values off the expression stack. This
is generally fine, but fails massively when the values are large numbers, where xslt prefers scientific notation.

% cat ~/trash/test.slax
version 1.2;

main {
slax:printf("%s", 12345123451234512345);
slax:printf("%d", 12345123451234512345);
}
% slaxproc -g -E ~/trash/test.slax

1.23451234512345e+19 1.23451234512345e+19
@philshafer philshafer added the bug label Apr 10, 2014
@philshafer philshafer self-assigned this Apr 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant