Deal with float vs double for iOS