• Resolved benh123

    (@benh123)


    Hi there,

    I’m building a calculator and working out the pricing it uses measurements (example 2200mm x 2000) – is there a way to a decimal point to the measurement without the user entering it? ie if they enter 2200 it would be 2.200.

    Hope that makes sense.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @benh123

    If you have a number field, and you want the plugin to apply the format entered into the field’s settings, you should tick the “Format Dynamically” checkbox.

    Best regards.

    Thread Starter benh123

    (@benh123)

    No what I mean is, if the user enters 2200 I need the calculation to work as 2.200 if that makes sense?

    Plugin Author codepeople

    (@codepeople)

    Hello @benh123

    If you want to use the point as the symbol for grouping thousands, you can enter the point symbol . into the “Symbol for grouping thousands” attribute and the comma symbol , into the “Decimals separator symbol” attribute.

    Best regards.

    Thread Starter benh123

    (@benh123)

    Sorry not sure you understand what I mean.

    I need the form to recognise 2200 as 2.200 so that the calculation works. It gives a result of 261360840 when it should be just 2613.

    Thanks,

    Plugin Author codepeople

    (@codepeople)

    Hello,

    In short, you want to divide a field’s value by 1000. So, assuming the field name is fieldname1, the equation would be:

    fieldname1/1000

    If you want the result with three decimal places when the number is not an integer, the equation would be:

    PREC(fieldname1/1000, 3, true)

    Best regards.

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

The topic ‘Change to format’ is closed to new replies.