Question

Asked on 2011-04-12 at 10:18:20ID: 27360340

Adding 2 numbers with 2 digits rounding

by: ashok111500

Rating7.0Very Good

I have following 2 numbers.
123456789000000111
22

After adding above two numbers, it should be
123456789000000133.00
but
it is showing
123456789,000000128.00

I am using following code.....

   total = Number(total).toFixed(2);
   ttl_lbl.text = total.toString();

How can I fix this?

Thanks

Related Solutions

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution

View This Solution - Start Your 30 Day Free Trial
Zone
general
Tags
Rounding
Participating Experts
1
Solution Grade
A

Replies

 by: leakim971

Posted on 2011-04-12 at 10:24:25ID: 36809769

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: leakim971

Posted on 2011-04-12 at 10:24:49ID: 36809770

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: ashok111

Posted on 2011-04-12 at 10:37:00ID: 36809771

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: ashok111

Posted on 2011-04-12 at 10:46:03ID: 36809772

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by:

Posted on 2011-04-12 at 11:19:43ID: 36809773

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: ashok111

Posted on 2011-04-12 at 14:14:36ID: 36809774

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: leakim971

Posted on 2011-04-12 at 14:23:22ID: 36809775

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: ashok111

Posted on 2011-04-12 at 14:53:48ID: 36809776

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: leakim971

Posted on 2011-04-12 at 15:02:40ID: 36809777

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: ashok111

Posted on 2011-04-12 at 16:14:59ID: 36809778

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. mplungjan

    1,840

    0 points yesterday

    Profile

BrowseAre you an Expert?