Skip to main content
Wawa
New Participant
June 25, 2023

Set decimal places in number variables

  • June 25, 2023
  • 35 replies
  • 7408 views

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

April 16, 2024

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!

July 15, 2024

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

Christine_Deer
New Member
September 13, 2024

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
October 15, 2024

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
October 27, 2024

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
December 3, 2024

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

Virginie_Douay
December 18, 2024

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

Arvid
Active Member
February 11, 2025

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

Sergey Verbenko
New Member
March 3, 2025

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
March 13, 2025

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”