Forum Discussion
dMoney
4 months agoActive Member
Storing Percentags
Whats the best pracctices for storing percentages against a user's profile. Eg. I have a use case where I want to store the interest rate applied to a customer's loan on their profile. Is it best p...
Manoj__
4 months agoSpecialist II
Hello dMoney
There isn't a one-size-fits-all best practice here—it depends on how you plan to use the data for segmentation or personalization.
Personally, I would avoid storing the "%" symbol as part of the value. I would use the attribute "interestRate" and store the value as 5.0. This way, I can avoid performing extra calculations when personalizing content or creating segments.
Related Content
- 2 years ago