{ "id": "63967", "key": "TIMOB-3335", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11356", "description": "Mobile 1.8.0 M03", "name": "Sprint 2011-24", "archived": true, "released": true, "releaseDate": "2011-06-20" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T13:40:14.000+0000", "created": "2011-04-15T03:42:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11260", "description": "", "name": "Release 1.6.2", "archived": true, "released": true, "releaseDate": "2011-04-20" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-11-05T13:40:14.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

For droid, the following example fails as the setDouble and\r\ngetDouble function convert the double to float and loss of\r\nprecision occurs:

\r\n
\r\nvar now = new Date();\r\nvar a = now.getTime();\r\nTi.App.Properties.setDouble('SessionIDTimeStamp', a );\r\n    \r\nvar b = Ti.App.Properties.getDouble('SessionIDTimeStamp');\r\nTi.API.error(\"After: \" + Ti.App.Properties.getDouble('SessionIDTimeStamp'));\r\n\r\nif(a == b)\r\n{\r\n    Ti.API.error(\"They are equal.\");\r\n}\r\nelse\r\n{\r\n    Ti.API.error(\"They are not equal.....???\");\r\n}\r\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Loss of precision with properties setDouble call", "creator": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130560", "author": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

here's the pull request for the fix: https://github.com/appcelerator/titanium_mobile/pull/79\n.

{html}", "updateAuthor": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:42:28.000+0000", "updated": "2011-04-15T03:42:28.000+0000" }, { "id": "156598", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Converted functional test to drillbit test, made formatting changes, merged pull request.", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-13T10:06:28.000+0000", "updated": "2011-06-13T10:06:28.000+0000" }, { "id": "157712", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "merged to 1_7_X", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-23T18:03:30.000+0000", "updated": "2011-06-23T18:03:30.000+0000" }, { "id": "158932", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.2.v20110706211037 on Droid 2.2.1 and emulator 2.3.3 ", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-07T11:42:14.000+0000", "updated": "2011-07-07T11:42:14.000+0000" }, { "id": "171605", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixing labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T13:39:55.000+0000", "updated": "2011-11-05T13:39:55.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }