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

Undocumented number to string conversion in vector sub-indexes #53

Closed
dgarroDC opened this issue Apr 20, 2019 · 3 comments
Closed

Undocumented number to string conversion in vector sub-indexes #53

dgarroDC opened this issue Apr 20, 2019 · 3 comments

Comments

@dgarroDC
Copy link
Collaborator

Number vector sub-indexes are converted to strings using std::to_string, leading to odd behavior.

For example, this example displays "dinosaurio" and then "dragón" because 0 is converted to "0.000000", but the reference doesn't suggest this behavior.

@Lartu
Copy link
Owner

Lartu commented Apr 21, 2019

@dvkt could we use the double to string without trailing zeros converter you used for DISPLAY with this issue?

@xvxx
Copy link
Collaborator

xvxx commented Apr 21, 2019

Yes that should fix it, I just made the change - try out the latest master. The example gist works for me now.

@Lartu
Copy link
Owner

Lartu commented Apr 21, 2019

Yes, that's it! Thank you!

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

3 participants