5 Replies Latest reply on Mar 4, 2013 12:51 PM by Mandy_Wiesener

# Calculation/Display problem

I'm having problems with getting my calculations to display as I want them.  I want the form to do a calculation:

For example, 453 / 100, using FormsCalc in LiveCycle, the answer comes out to 4.53, but I need it to come out as 453 - no decimal.  The solution is probably easy, but I'm not seeing it.  Can anyone help?

Thanks

Connie

• ###### 1. Re: Calculation/Display problem

Hi Connie,

may I ask why you need this display? Perhaps I have a solution for you.

Kind regards Mandy

• ###### 2. Re: Calculation/Display problem

Hi Mandy, the reason it needs to be displayed this way is because it's computing mileage.  We're calculating an average trip length in miles.  For example, number of Diverted VMT / Number of daily vehicle trips saved. (miles)  453 / 100 is 453 miles, not 4.53.

Is there a way to make this calculate 453 miles and not 4.53?

• ###### 3. Re: Calculation/Display problem

Short question:

• You have two user-enter-field?
• And you need to divided field1/field2?
• You need the result without , ?
• Right?

He appearance "miles" is no problem.

• go t the target field.
• go to object | pattern
• num{zzzzzzzz9.99 'miles'}
• you can write everything in the ' ' ('hot dogs', 'flowers', ...
• ###### 4. Re: Calculation/Display problem

Um.. it don't see a way to solve this because except by multiplying the result with 100.

`Diverted VMT / Number of daily vehicle trips saved * 100`

• ###### 5. Re: Calculation/Display problem

@radzmar: Nice to see you here (I thougt the same. Therefore my question about the static number 100 or a variable user entry as divider )