Skip to main content

Set decimal places in number variables


Show first post

32 replies

Emily5
  • New Member
  • 1 reply
  • 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

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


Arvid
  • Active Member
  • 44 replies
  • February 11, 2025

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


Sergey Verbenko

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

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” 

 


Fernando Vera
Mila_Sevilla wrote:

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” 

 


This worked like a charm.


Terry Burris
Mila_Sevilla wrote:

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” 

 

This works for me as well! However, only for $0.00.

If you are trying with other amounts, like $400, it doesn’t work. Hopefully Figma will release something soon for this, this year.

UPDATE
Just tried again for the 400 value, and it worked fine. I take back what I said :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings