Xbrowse Problem to round cent

Xbrowse Problem to round cent

Postby Silvio.Falconi » Mon Jan 15, 2018 12:02 pm

I make on a column a calc with Maketotals() methods
but I have 1636.76 when the total is 1636.64 and here at my school want the exact total
I can use round(ncalc,2)
but I not understood where insert this command because the xbrowse calc automatically
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6716
Joined: Thu Oct 18, 2012 7:17 pm

Re: Xbrowse Problem to round cent

Postby nageswaragunupudi » Mon Jan 15, 2018 2:12 pm

XBrowse does not total wrongly.
Probably the values of each row have more than 2 decimal places.
You need to round off values of each row to 2 decimal places using round( val, 2 )
Then the totals match correctly
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10208
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 19 guests