Hello. Can you have a look? This should increase $lit (+1) when cents are higher than .50. The problem is: It is incresing in any case (even if the value is lower than 50)
Thanks very much for this service.
Robert
-------------------
if ($litval = 1){
$lit = $iltot*1936.27; #multiply currency
@cent = split/\./,$lit; #get cents
$lit=~s/.@cent[1]//; #remove cents
if (@cent[1] > 50){$lit++;} #round
}
else{
$iltot=~s/\.//;
}
Thanks very much for this service.
Robert
-------------------
if ($litval = 1){
$lit = $iltot*1936.27; #multiply currency
@cent = split/\./,$lit; #get cents
$lit=~s/.@cent[1]//; #remove cents
if (@cent[1] > 50){$lit++;} #round
}
else{
$iltot=~s/\.//;
}