{ "id": "63634", "key": "TIMOB-3002", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-07-10T21:44:09.000+0000", "created": "2011-04-15T03:34:27.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-10T21:44:09.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
\r\ncurrentValue = 0.07;\r\n\r\n var currentReadingValueLabel = Ti.UI.createLabel({\r\n text: currentValue,\r\n left: 110,\r\n top: 22,\r\n height: 'auto',\r\n color: '#fff',\r\n width: 150,\r\n textAlign: 'left',\r\n font:{\r\n fontSize: 24,\r\n fontStyle: 'bold'\r\n }\r\n });
\r\n
\r\nWhen displayed in both the iphone simulator and on the device\r\n(iPhone 3GS, iOS 4.1) I don't get just 0.07 but something like\r\n0.07000000000001. Using Dev 1.2.2 with iOS SDK 4.2 and Titanium\r\nMobile 1.5.1 (latest).
Maybe this is just an issue with javascript decimal fraction\nprecision, but it's not clear since no arithmetic functions are\nbeing applied. Worked around the issue with currentValue =\ncurrentValue.toString();.