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

32238 loss of precision set double #79

Merged
merged 1 commit into from Jun 13, 2011

Conversation

yellowandy
Copy link

Casting down to float causes loss of precision, better to store as string and convert to double for the getter.

@@ -79,16 +79,24 @@ public class TiProperties
if (DBG) {
Log.d(LCAT,"getDouble called with key:"+key+", def:"+def);
}
return (double)preferences.getFloat(key,(float)def);
if( !this.hasProperty(key) )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally use spaces after if , and none inside the condition, but I'll update this when I merge

@donthorp
Copy link
Contributor

Code review, functional test. Accepted. (Formatting changes and drillbit test will be added by Marshall before merging)

@marshall
Copy link
Contributor

Functional test looks good, some minor code review nits that I'll be fixing up when I merge in. Thanks for this!

@marshall marshall merged commit 952230b into tidev:master Jun 13, 2011
alexandergalstyan referenced this pull request in alexandergalstyan/titanium_mobile Jun 25, 2012
TIMOB-9164: Blackberry: [Studio integration] regenerate the bar-descriptor file at packaging time
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

Successfully merging this pull request may close these issues.

None yet

3 participants