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

Sending Doubles #4

Open
cookn opened this issue Jan 4, 2017 · 1 comment
Open

Sending Doubles #4

cookn opened this issue Jan 4, 2017 · 1 comment

Comments

@cookn
Copy link

cookn commented Jan 4, 2017

this seems to only work for integers is there a work around to make it work with doubles? i have to send data that is more accurate than the closest whole number

@ernestum
Copy link
Owner

There is indeed a dirty workaround. Multiply your number by 1000 before you send it and then divide by 1000 again on the receiving side (use floating point division, not integer division)

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