Topic Options
#31541 - 04/04/12 10:44 AM Gridview - Rounding Numbers
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
I have a Calculated Column in a Gridview: {Sold LY} /12

The results have too many decimal places. How can I limit the decimal places to 2?
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#31544 - 04/04/12 11:18 AM Re: Gridview - Rounding Numbers [Re: SusanTennier]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3504
Loc: Toronto ON, Canada
Hi Susan:
Right-click on the column, choose "Add formatting" then "Format" tab then enter "2" as the "Precision".
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#31545 - 04/04/12 11:32 AM Re: Gridview - Rounding Numbers [Re: Bruce Gardner]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Doesn't seem to be working. What do you have as the format type?
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#31546 - 04/04/12 11:44 AM Re: Gridview - Rounding Numbers [Re: SusanTennier]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11324
Loc: Vancouver, BC Canada
Hi Susan,

Try 'comma' as the format. Also, there are increase/decrease decimal buttons on the toolbar - select the column and click the decrease decimal button.

You could also try rounding the calculated amount -> use ROUND({Sold LY} /12,2) to round the value to 2 decimal places.
_________________________
Regards,
Softrak Tech Support

Top
#31547 - 04/04/12 11:49 AM Re: Gridview - Rounding Numbers [Re: SusanTennier]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3504
Loc: Toronto ON, Canada
Susan:
I used "(Comma)". I have a percentage column and I can change the number of decimals at will.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#31549 - 04/04/12 12:03 PM Re: Gridview - Rounding Numbers [Re: Bruce Gardner]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Comma with Precision are working... until I summarize.
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#31550 - 04/04/12 12:06 PM Re: Gridview - Rounding Numbers [Re: SusanTennier]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10493
Loc: Canada
Hi Susan,

I think you might need to click on the Total cell and apply the comma format to that cell specifically. It's a bug (or at least not the behaviour you might expect when you highlight the column).
_________________________
Andrew Bates

Top
#31551 - 04/04/12 12:37 PM Re: Gridview - Rounding Numbers [Re: Retired_Guy]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
When I do that and summarize the whole column goes blank.
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 98 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1848 Members
5 Forums
14242 Topics
69746 Posts

Max Online: 359 @ 11/18/19 09:08 PM
May
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31