Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    [cfdb-table form="your-form" trans="field1=ceil(field1)"] or use “round”.

    Mean is a function on more then one number. You can use AverageField see http://cfdbplugin.com/?page_id=1167

    Thread Starter pscrignoli

    (@pscrignoli)

    Michael, thanks for response.

    I use this: [cfdb-value form=”Cotação” show=”produto-1″ function=”mean”][/cfdb-value]
    and
    this: [cfdb-table form=”Cotação” trans=”Averagefield(produto-1)”]

    Both works fine for me.

    But i couldn’t round any of them. Could you help me?

    Plugin Author Michael Simpson

    (@msimpson)

    Thy this for the second one. I’ll get back to you on the first

    [cfdb-table form="Cotação" trans="AverageField(produto-1)&&produto-1=round(produto-1)"]

    Plugin Author Michael Simpson

    (@msimpson)

    On the first one, don’t use function=”mean” in this case, use the AverageField transform:

    [cfdb-value form="Cotação" show="produto-1" trans="AverageField(produto-1)&&produto-1=round(produto-1)" ]

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Man Function – Round’ is closed to new replies.