Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17071

Bug? Plist with scientific notation returning different values in iOS and Android

$
0
0

@bolin wrote:

When you write a number like 0.0000152587890625 in a plist xcode will actually save it as 1.52587890625E-05.

If you read this value from the plist using asFloat() the correct value will be returned in iOS, however in android it will return the number 1.52587890625.

This seems like a bug to me since it should be returning the same (and correct) value for all platforms.

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17071

Trending Articles