I create PaintStyles and TextStyles via Plugin API. Sometimes I set decimal values like r,g,b,a or letterSpacing.
Later on, I want to control those values that I created with API in order to avoid duplicate styles. However, getLocalTextStyles and getLocalPaintStyles return me back my decimal values with very high precision.
For example I set: 0.11 and get back 0.10999999940395355. So, this makes my comparison very complicated and even impossible sometimes.
Am I missing something or is it an issue?
Thanks for your help.