Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

email templates and custom properties

$
0
0

Is there access to the DailyCost not formatted?  I have been tasked with calculating a VM's monthly (and/or yearly cost) versus just daily cost.  As such, multiplying out the DailyCostFormated causes those totals to be off by a few cents to a couple of dollars.  Unfortunately, we are attempting to match the vCAC vm pricing with current pricing based on yearly totals of VMs in an external billing system. 

 

My hope is to gain access to more significant digits while doing the calculations.

 

variables available for example:

 

//VirtualMachineTemplateEx/Cost - is only the daily cost to the base blueprint as defined under Blueprint Information

 

//ReservationHelper/DailyCostFormatted - is sum total (CPU,Mem,Storage,Blueprint Cost) but is formatted (Not a Number) and only has two significant digits past the decimal. 

 

I was able to convert DailyCostFormatted to a number, but still have the issues of number of sig digits.

 

So for example a VM monthly cost of $100 / 30.4368 (avg number of days to a month) comes out to 3.285496504

  rounded to $3.29 * 30.4368 = $100.14

  rounded to $3.28 * 30.4368 =   $99.83

 

Frustration


Viewing all articles
Browse latest Browse all 9859

Trending Articles