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

Problem with type long #146

Open
marinabgarcia opened this issue Jul 11, 2014 · 1 comment
Open

Problem with type long #146

marinabgarcia opened this issue Jul 11, 2014 · 1 comment

Comments

@marinabgarcia
Copy link

Hi! I have a problem with numbers which lenght is bigger than 17 characters. For example, if in my db a row contains "20140711185900112" (data type long) when the flexigrid loads the data appears "20140711185900110" instead of the number that really is in the db.
I hope someone can help me. Thank you.

@x-moe-x
Copy link

x-moe-x commented Oct 16, 2014

i think this is due to precision problems as numbers in js are generally floating point values. it is more a javascript problem and not a flexigrid one. see this answer for some background: http://stackoverflow.com/a/5812121/944201
workaround: if you don't need to calculate something you could pass it as a string or as it might seem you're using it as some sort of timestamp you yould pass it in a json-object that seperates date from time, like:

{"date":20140711, "time":185900110}

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