• Resolved ladober

    (@ladober)


    Sorry for too many questions!
    I am trying to take off a percentage value out of a field. For example, field wage and field hours.

    I placed the following in the template of numeric calculation [wage]+[hours] and that works fine, but when I tried to add the percentage value like this [wage]-25%+[hours] didn’t work and returned the same value as without the percentage operation.

    Is there any way to achieve that?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    The template you’re using won’t give you the desired result.

    First, you shouldn’t use the “%” sign in the template, that will become a literal string, not a numeric value. % doesn’t function as an operator in the calculation template.

    Second, to get a percentage, you need to multiply. I don’t exactly understand what you’re trying to achieve, so I can’t give you the template you should use, but for example to get 25% of the wage value, you’d use:

    [wage]*0.25

Viewing 1 replies (of 1 total)
  • The topic ‘Calculate a percentage value in numeric calculation.’ is closed to new replies.