Skip to main content

Search and Top Navigation

#8971 closed bug (duplicate)

Opened January 17, 2013 06:07AM UTC

Closed January 17, 2013 06:12AM UTC

Issue in displaying exponential number

Reported by: karthio Owned by:
Priority: minor Milestone: none
Component: ui.core Version: 1.7.3
Keywords: Cc:
Blocked by: Blocking:

I am using jquery mobile framework with Java (json with spring) for my mobile application.server sends response as 1.2345678901234568E16 for one of the value but jquery in UI, its not receiving the value as it is. It is doing type conversion/auto rounding off while displaying in UI.

FYI, I am using Double datatype in server side. Also i tried use .attr() attribute to get the original value. But the problem is, am iterating over the dynamic values. could you please help me out to solve this issue? Please let me know if you need further information

function onSuccess(data) {

var i = 0; $.each(data, function(index, pelem) {

$.each(pelem, function(key, element) {

i = i + 1; var name = ""; var amount = 0; var tolerance = 0; var fixed = false; if (element.person != null) {

name = element.person.description; amount = element.amount; tolerance = elemen * 100; if (element.amount == null) fixed = false; else fixed = true;


In this, amount is actually 1.2345678901234568E16 but jquery converts this to 12345678901234568 automatically. When we print the output of the server response, its prints as expected. (in server side, am using rest web services so that i can see the response in the browser)

Please treat this as major issue and help us to come out

Attachments (0)
Change History (1)

Changed January 17, 2013 06:12AM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Duplicate of #8970.