pyairtable icon indicating copy to clipboard operation
pyairtable copied to clipboard

add support for PercentField in orm

Open prenit-wankhede opened this issue 3 years ago • 1 comments

prenit-wankhede avatar Apr 05 '22 13:04 prenit-wankhede

I have a question @prenit-wankhede , not sure if you know -

  1. does airtable return percentages as 0-1 or 0-100?
  2. does it return floats or Ints?

gtalarico avatar Apr 08 '22 18:04 gtalarico

@gtalarico Airtable returns (and takes) percentages as a decimal value between 0 and 1 (optionally including negative values). For the PercentField subclass is to support int values or float values outside that range, shouldn't it convert them to an acceptable format?

@prenit-wankhede would mathematical operations with PercentField values be easier if it consistently returned a float between -1 and 1?

larsakerson avatar Sep 29 '22 15:09 larsakerson