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

Number precision only 6 digits #13

Open
ZJONSSON opened this issue May 16, 2013 · 2 comments
Open

Number precision only 6 digits #13

ZJONSSON opened this issue May 16, 2013 · 2 comments

Comments

@ZJONSSON
Copy link

I have an annoying problem with numbers coming from excel (both integers and floats). It seems that any number can only have a maximum number of 6 digits. Any additional digits will be rounded or transmitted in scientific notation. Cell formatting does not make any difference (however defining text containing a number causes no problems, but is inconvenient).

Here are some examples (I'm using Excel 2013 and xlloop-0.3.2 with protocol = http)

input: 123456: 
{"request":"XLLoop",
  "version":"0.1.0",
  "name":"print",
   "args":[{"type":1,"num":123456}]
}

input: 1234567
{ "request":"XLLoop",
  "version":"0.1.0",
  "name":"print",
   "args":[{"type":1,"num":1.23457e+006}]
}

input: 12345678
{ "request":"XLLoop",
  "version":"0.1.0",
  "name":"print",
  "args":[{"type":1,"num":1.23457e+007}]
}

input: 12345.6789
{ "request":"XLLoop",
  "version":"0.1.0",
  "name":"print",
  "args":[{"type":1,"num":12345.7}]
}
@poidasmith
Copy link
Owner

Thanks for the report. I suspect this will be in the layer between excel and json. Let me take a look.

@ZJONSSON
Copy link
Author

Thanks, much appreciated!

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