Here you can find the source of getMonthTotal(Double bsAmount, Double susAmount, Double changeRate)
Parameter | Description |
---|---|
bsAmount | Amount in bs |
susAmount | amount is sus |
changeRate | changeRate |
public static Double getMonthTotal(Double bsAmount, Double susAmount, Double changeRate)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww. j av a2s . c o m*/ * Calculates the bsAmount(converted to dollars)+susAmount * * @param bsAmount Amount in bs * @param susAmount amount is sus * @param changeRate changeRate * @return the sum */ public static Double getMonthTotal(Double bsAmount, Double susAmount, Double changeRate) { Double res = null; if (bsAmount != null) { res = bsAmount / changeRate; } if (susAmount != null) { if (res != null) { res += susAmount; } else { res = susAmount; } } return (res); } }