Groovy web console

subscribe to the feed Subscribe
to this
site

Round calculo

Published 2 months ago by Alex Rodin with tags round double
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def total = 0.0d
def contratoUSTValor = 139.57d
def contratoPFValor = 434.45d;
def volumeUSTCF = 7
def volumePFDLCF = 11.7d
def volumePFELCF = 3.6d

def valorUST = (volumeUSTCF * contratoUSTValor )
total += valorUST

def valorPfdl = (volumePFDLCF * contratoPFValor )
total += valorPfdl

total