Softaculous


Topic : decimals for resource pricing


Posted By: fhcardoso on March 29, 2021, 3:25 pm
In the documentation there is an example that shows the use of more decimals, but in the interface only step=0.01 is allowed.

I managed to get around by modifying the html and placing 6 decimals.

Ideally, at least 6 decimals should be used for the hourly price.
A VPS for example $5 per month is $0.006944 per hour.

The same problem is when to define the price per resource.
The price of RAM, CPU etc ...

See the attachments;

I modified this validation in the html and managed to update the information to 6 decimals, but I'm not sure if it will correctly calculate the hourly price or if it will round to 0.01

Posted By: jevingala on March 30, 2021, 6:50 am | Post: 1
Hi,

We have replied in your ticket and provide few files and now you can add up to 3 decimals.

-----------------------
Regards,
Virtualizor Team.
http://virtualizor.com/

Posted By: radwebhosting on April 24, 2024, 3:47 pm | Post: 2
I also agree since the resources are calculated in 1 GB integrals at hourly integrals. In USD, a 10GB storage would be $7.30/mo when based on the least possible assigned cost $0.001 during a month that has ~730 hours.

Now, we would much prefer to charge our users less for this amount of disk.

I imagine there might be other currencies also, where 3 decimal places is unsuitable.

Edited by radwebhosting : April 24, 2024, 3:49 pm

-----------------------
Rad Web Hosting - Dallas, TX | Phoenix, AZ
KVM VPS - Dedicated Servers - Colocation

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.