realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Double problem

Open mkovalyk opened this issue 11 years ago • 1 comments

I have RealmObject StopInfo with two double fields. I create new object and set values:

final StopInfo info = new StopInfo(); info.setLng(stop.getLatLng().longitude); info.setLat(stop.getLatLng().latitude);

everything seems ok, but I have weird situation. In stop I have string representation of LatLng with value - StringLatLng(latitude=49.842733679558, longitude=24.034950448035). And after set this values - I have: lat = 49.827336795584 lng = 24.049504480353. As you can see bolded digits are swapped. stop.getLatLng().longitude - is correct. I use realm 0.79.

mkovalyk avatar Apr 23 '15 13:04 mkovalyk

Sorry, it was mistake of another library not realm..

mkovalyk avatar Apr 23 '15 13:04 mkovalyk