Search:

Type: Posts; User: tonynsx

Search: Search took 0.09 seconds.

  1. Re: How to set value of double to 2 decimal places

    Thanks, Math.round() worked!
  2. Re: How to set value of double to 2 decimal places

    Thanks for clearing that up, yes I did misunderstood.

    --- Update ---

    Now it's working the way I want. Please let me know if I can improve on anything.


    Change: 88.38, Dollar: 88, getCent:...
  3. Re: How to set value of double to 2 decimal places

    If I have, 77.92, the 77 is the dollar, then .92 is the cent. Unless my calculations are wrong above.
  4. Re: How to set value of double to 2 decimal places

    Thank you
  5. How to set value of double to 2 decimal places

    How can I make the value of double 2 decimal places? I know how to display 2 decimal places, but how to actually set the values to 2?

    Example, my change below is 7.93

    So it knows the dollar is...
Results 1 to 5 of 5