Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate 3 EZ Pay
Message
From
23/10/2008 08:33:14
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356419
Message ID:
01356520
Views:
19
>According to my calculations 599.97 is equally divisible by 3:
>599.97/3 = 199.99
>
>All our prices ends in .99 but in a case when product is between 249.99 and 999.94 we offer 3 monthly payments plan. Therefore when Purchasing enters those prices system needs to tell them what number should they be using:
>
>EX:
>
>User enters: 599.99
>System validates: 599.99/3 = 199.996666 NOT GOOD
>599.98/3 = 199.99333 NOT GOOD
>599.97/3 = 199.99 OK
>
>Daniel

I'm not a vb.neter, but it should be simple. ((integer of (100*(x/3))) /100) * 3 = target.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform