I've created a form with lots of calculations, and I've got things working fairly well. Here is its URL for sample purposes: http://forms.jax.org/forms/view/67
I've utilized the javascript formula Cedric indicated for rounding some of these numbers off to the nearest whole number. but for the purposes of this form those numbers need to always be rounded UP. In other words, 2.164 needs to be rounded UP to 3, not down to 2.
I found some javascript that creates a function "round_number" at this URL: http://www.netshinesoftware.com/component/option,com_myblog/Itemid,65/show,Rounding-Numbers-in-Javascript.html/
...and I THINK it will do what I want it to. I guess my question is twofold:
1. how would I reference a javascript function I put in the "custom code" section of the form for the purpose of a more complex calculated field?
2. is there an easier way to achieve this 'force the rounded number to always round up' in a calculated field?
Thanks in advance for any insight!
(and yes, I still owe a write-up on building a HubSpot form connector, I do plan to get that done for everyone within the next few weeks).