So many “gotchyas” in variables at the moment. Number formatting options like zero padding, and adding a thousands comma are pretty essential. All of the current demos conveniently use prices that get around these problems. Lastly, being able to reference an image as a variable would be needed to properly have a database to work with.
Also have issues with price formatting, especially when cart is set at zero. Sometimes it looks fine- 0.00, sometimes it’s like this: 0, and sometimes: -0.00. Allowing currency symbols too please. And commas for large numbers!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
Does anyone know how to set decimals in number variants to show in Figma? Currently, it only shows whole numbers or not total decimal numbers. I would like for Figma to show $8.30 instead; it shows $8.3
I am prototyping a retail product listing and need decimals on the prices to accurately prototype the spacing we will need on our columns and the font size we will use. I am also using conditional prototyping for the cart when more than one item is added to the cart for the full price.
Thank you for reading.
Replying to my past self… I was able to make the prototype, where the user can tap +/- buttons to increment or decrement a voltage value shown to one decimal place, by assigning one variable to the integral part of the value and one to the fractional then doing the math.
Utterly ridiculous that I shouldv’e had to do this but apparently the only thing floating point numbers are for in Figma is checkout prices
This would be really helpful.
I’m wasting hours of time working around this. It would only have take a few minutes to make this change if I could specify decimal places with number variables.
please please! don’t pigeon hold it to two decimal spots, money isn’t the only integer this is useful for