Skip to main content
Solved

Percent field is appending 0.0% to the value I try to save

  • June 24, 2020
  • 2 replies
  • 21 views

Forum|alt.badge.img+3

Hi everyone,

I’m having an issue that when I save an integer to a percent field, it appends 0.0% to the amount. Let’s say the value is 25 it’ll save as 250.0% anyone has an idea on why this is happening?

And also on the API docs, the percent field is the only one that displays no info.

I have attached screenshots of this.

Best answer by Billy_Littlefie

This article may be of some help. Specifically:

The percent field type is a field type designed to hold numerical values formatted as percents. The values in a percent field are all represented as fractions of 100 with the percent sign; e.g. the number .75 in a percent field is represented as 75%.

It’s definitely unintended for the field type & description to be missing from the API docs though – thanks for flagging!

2 replies

Forum|alt.badge.img+4
  • Inspiring
  • 58 replies
  • Answer
  • June 25, 2020

This article may be of some help. Specifically:

The percent field type is a field type designed to hold numerical values formatted as percents. The values in a percent field are all represented as fractions of 100 with the percent sign; e.g. the number .75 in a percent field is represented as 75%.

It’s definitely unintended for the field type & description to be missing from the API docs though – thanks for flagging!


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 1 reply
  • June 25, 2020

This article may be of some help. Specifically:

The percent field type is a field type designed to hold numerical values formatted as percents. The values in a percent field are all represented as fractions of 100 with the percent sign; e.g. the number .75 in a percent field is represented as 75%.

It’s definitely unintended for the field type & description to be missing from the API docs though – thanks for flagging!


I somehow missed that. I tried to divide the amount by 100 before but I realized that it was not float, so 25/100 would result in 0.

Your response did it for me. I was able to make it work. Thank you for that!