Skip to main content
Wawa
New Participant
Jun 25, 2023 11:49 PM UTC

Set decimal places in number variables

Currently you can set things like, 5.99 or 4.32 but you can’t show 5.00 by default.

This looks weird when you start adding amounts like #amount + 0.5 which will then look like $5, $5.50, $6, $6.50. It would be nice if instead it showed as $5.00, $5.50, $6.00, $6.50

    35 replies

    Apr 16, 2024 10:41 AM UTC

    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!

    Jul 15, 2024 10:41 AM UTC

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

    Christine_Deer
    New Member
    Sep 13, 2024 6:21 PM UTC

    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. 😊

    Marcus_Harvey
    New Participant
    Oct 15, 2024 5:19 PM UTC

    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 😛

    Seth_Keel
    Oct 27, 2024 11:55 PM UTC

    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.

    Emily5
    New Member
    Dec 3, 2024 10:18 PM UTC

    please please! don’t pigeon hold it to two decimal spots, money isn’t the only integer this is useful for

    Virginie_Douay
    Dec 18, 2024 9:59 AM UTC

    Pleassse! The countdown looks weird when the number is under 10, i wish i had “09” display instead of " 9" ❣️

    Arvid
    Active Member
    Feb 11, 2025 4:11 PM UTC

    Currently the feature is only of very limited use in prototyping without this option :(

    Sergey Verbenko
    New Member
    Mar 3, 2025 2:45 PM UTC

    I also needed to use one decimal place because it was for temperature, and the format 22.50° didn't look very good. I still made a prototype, though it looks a bit complicated)). I created two variables for the temperature and the digit after the decimal point. And for the "+" button, I made conditions like on image.

     

    Mila_Sevilla
    New Member
    Mar 13, 2025 10:32 AM UTC

    I think I might have found a workaround, at least for showing “0.00”. So the trick is to not set the variable to 0.00 but to 0.001. It will turn into “0” in the variables panel but in the prototype it shows me “0.00”