Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    Is there anyway to round or restrict decimal places? I am trying to use it to get totals for instance:

    $125 * .0825.... the issue is then I get 10.3125 which is ugly and doesn't work. Any ideas?
    • CommentAuthorcedsav
    • CommentTimeNov 16th 2007
     
    Sorry it's not possible at this time, but we're considering adding more options to the calculation formulas, so it's good to know that you would find a rounding function useful. It might take a while before we can get to it, but I'll keep you updated.
    • CommentAuthorrckites
    • CommentTimeApr 28th 2008 edited
     
    Are there any updates on this? I think a lot of people would prefer $10.25 over $10.2489843. Is there a quick fix I can do on my own?
  2.  
    also, when calculating money totals, it should be £12.50 not £12.5
    • CommentAuthorcedsav
    • CommentTimeMay 12th 2008
     
    Hi,

    You can actually use the javascript Math functions in the form's calculations. Try something like this in your formula:
    (UNITPRICE*QUANTITY).toFixed(2)

    Here' s a template form with a couple examples:
    http://app.formassembly.com/forms/catalog/565