How to store price in double using javascript for fetch on realm side

Hello ,

We are using realm on the mobile side for sync data and javascript on web site to insert data in to altas but we are facing an issue to store price in double

Issue: if the price is in decimal number its store in double datatype = 100.12 but if the price is 100.00 its get stored in int32

how we can resolved the issue
Javascript has decimal datatype to store decimal values but realm doesn’t have decimal datatype to get data

please help me

Hi @kunal_gharate could you please share your Realm Object definition and your backend Realm schema?

I have fixed this issue

solution : I have stored decimal value at javascript side and Decimal128 - bson type at android side before that I was using double Datatype

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.