Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3336] int type doesn't exist on android

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-08-19T21:20:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterlunika
AssigneeIngo Muschenetz
Created2011-04-15T03:42:28.000+0000
Updated2017-03-20T21:37:26.000+0000

Description

On android, it is impossible to use int variables. They are automatically transform in float type. Using Ti.App.Properties.setInt/getInt don't resolve the problem.

Comments

  1. Chris Barber 2016-08-19

    Assuming this issue is talking about a Titanium Android app, then correct, there is no int data type. There is a Number data type and it can contain an integer or a float. Internallly, Number values are stored as doubles. All JavaScript engines work this way. It's in the spec. In other words, this is not a bug.
  2. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source