Expand my Community achievements bar.

Calculation/Display problem

Avatar

Level 4

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

5 Replies

Avatar

Level 5

Hi Connie,

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

Kind regards Mandy

Avatar

Level 4

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?

Avatar

Level 5

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', ...

Avatar

Level 10

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

Avatar

Level 5

@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 )