Rounding (or Lack of it) Problem

Peter Kolbe peter at venturenet.co.za
Tue Feb 15 23:51:01 PST 2005


Hi,
I have a package that is R109.00 per month
Our Tax Rate is 14%

so I specify the recur as
95.614035087719298245614035087719, which when multiplied by 1,14 (by calculator) = R109.00

but it looks like freeside is using 2 dec places to calculate total, so I get :

 Premium Dial-Up (03/01/05 - 04/01/05)                             R     95.61
    V90 Dialup: xxxxx at venturenet.co.za                                       
   VAT                                                                                       R     13.38
                                                                                                  -----------
  Balance Due                                                                         R    108.99


Which is not the 109.00 that it is supposed to be

With previous freeside i had, I hacked in ceil(),
but I want to keep an easy upgrade path, so I do not want to hack freeside code.

Any Idea on how I sort this one out

Peter

--------------------------------------------------------------------------
The information transmitted is intended only for the person to whom it is 
addressed and may contain confidential and/or privileged material.

Although SCDS / Venturenet scans incoming and outgoing emails and email 
attachments for viruses we cannot guarantee a communication to be free of 
all viruses nor accept any responsibility for viruses. 

Although SCDS / Venturenet monitors incoming and outgoing emails for 
inappropriate content, we cannot be held responsible for the views or 
expressions of the author. 

The views expressed may not necessarily be those of SCDS / Venturenet and 
as such, cannot be held responsible for any loss or injury resulting from 
the contents of a message. 
--------------------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://420.am/pipermail/freeside-users/attachments/20050216/11dbef14/attachment.htm


More information about the freeside-users mailing list