Package mondrian.olap.fun.vba
Class Vba
java.lang.Object
mondrian.olap.fun.vba.Vba
Implementations of functions in the Visual Basic for Applications (VBA)
specification.
The functions are defined in MSDN .
- Since:
- Dec 31, 2007
- Author:
- jhyde
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
abs
(double number) static int
static int
static int
static double
atn
(double number) static boolean
static byte
static Date
static double
static String
chr
(int charCode) static String
chrB
(int charCode) static String
chrW
(int charCode) static int
static double
cos
(double number) static Date
date()
static Date
static long
static long
static long
static int
static int
static int
static Date
dateSerial
(int year, int month, int day) static Date
static int
static double
dDB
(double cost, double salvage, double life, double period) static double
dDB
(double cost, double salvage, double life, double period, double factor) static double
exp
(double number) static int
static String
formatCurrency
(Object expression) static String
formatCurrency
(Object expression, int numDigitsAfterDecimal) static String
formatCurrency
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit) static String
formatCurrency
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers) static String
formatCurrency
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers, int groupDigits) static String
formatDateTime
(Date date) static String
formatDateTime
(Date date, int namedFormat) static String
formatNumber
(Object expression) static String
formatNumber
(Object expression, int numDigitsAfterDecimal) static String
formatNumber
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit) static String
formatNumber
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers) static String
formatNumber
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers, int groupDigits) static String
formatPercent
(Object expression) static String
formatPercent
(Object expression, int numDigitsAfterDecimal) static String
formatPercent
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit) static String
formatPercent
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers) static String
formatPercent
(Object expression, int numDigitsAfterDecimal, int includeLeadingDigit, int useParensForNegativeNumbers, int groupDigits) static double
fV
(double rate, double nPer, double pmt) static double
fV
(double rate, double nPer, double pmt, double pv) static double
fV
(double rate, double nPer, double pmt, double pv, boolean type) static String
static int
static int
static int
static int
static int
static int
static int
static int
static double
iPmt
(double rate, double per, double nPer, double PV) static double
iPmt
(double rate, double per, double nPer, double PV, double fv) static double
iPmt
(double rate, double per, double nPer, double PV, double fv, boolean due) static double
IRR
(double[] valueArray) static double
IRR
(double[] valueArray, double guess) boolean
static boolean
boolean
boolean
boolean
boolean
boolean
static String
static String
static double
log
(double number) static String
static String
static String
static int
static double
MIRR
(double[] valueArray, double financeRate, double reinvestRate) static int
static String
monthName
(int month, boolean abbreviate) static Date
now()
static double
nPer
(double rate, double pmt, double pv, double fv, boolean due) static double
nPV
(double r, double[] cfs) static String
static double
pmt
(double rate, double nPer, double pv, double fv, boolean due) static double
pPmt
(double rate, double per, double nPer, double PV) static double
pPmt
(double rate, double per, double nPer, double PV, double fv) static double
pPmt
(double rate, double per, double nPer, double PV, double fv, boolean due) static double
pV
(double rate, double nper, double pmt, double fv, boolean due) static double
rate
(double nPer, double pmt, double PV) static double
rate
(double nPer, double pmt, double PV, double fv) static double
rate
(double nPer, double pmt, double PV, double fv, boolean type) static double
rate
(double nPer, double pmt, double PV, double fv, boolean due, double guess) static String
static String
static String
static String
static String
static double
round
(double number) static double
round
(double number, int numDigitsAfterDecimal) static String
static int
static int
sgn
(double number) static double
sin
(double number) static double
sLN
(double cost, double salvage, double life) static String
space
(int number) static double
sqr
(double number) static String
static int
static int
static String
string
(int number, char character) static String
strReverse
(String expression) static double
sYD
(double cost, double salvage, double life, double period) static double
tan
(double number) static Date
time()
static float
timer()
static Date
timeSerial
(int hour, int minute, int second) static Date
static String
static String
static double
static int
static int
static String
weekdayName
(int weekday, boolean abbreviate, int firstDayOfWeek) static int
-
Constructor Details
-
Vba
public Vba()
-
-
Method Details
-
cBool
-
cByte
-
cDate
-
cDbl
-
cInt
-
fix
-
hex
-
int_
-
oct
-
str
-
val
-
dateAdd
-
dateDiff
-
dateDiff
-
dateDiff
-
datePart
-
datePart
-
datePart
-
date
-
dateSerial
-
dateValue
-
day
-
hour
-
minute
-
month
-
now
-
second
-
time
-
timeSerial
-
timeValue
-
timer
public static float timer() -
weekday
-
weekday
-
year
-
dDB
public static double dDB(double cost, double salvage, double life, double period) -
dDB
public static double dDB(double cost, double salvage, double life, double period, double factor) -
fV
public static double fV(double rate, double nPer, double pmt) -
fV
public static double fV(double rate, double nPer, double pmt, double pv) -
fV
public static double fV(double rate, double nPer, double pmt, double pv, boolean type) -
iPmt
public static double iPmt(double rate, double per, double nPer, double PV) -
iPmt
public static double iPmt(double rate, double per, double nPer, double PV, double fv) -
iPmt
public static double iPmt(double rate, double per, double nPer, double PV, double fv, boolean due) -
IRR
public static double IRR(double[] valueArray) -
IRR
public static double IRR(double[] valueArray, double guess) -
MIRR
public static double MIRR(double[] valueArray, double financeRate, double reinvestRate) -
nPer
public static double nPer(double rate, double pmt, double pv, double fv, boolean due) -
nPV
public static double nPV(double r, double[] cfs) -
pPmt
public static double pPmt(double rate, double per, double nPer, double PV) -
pPmt
public static double pPmt(double rate, double per, double nPer, double PV, double fv) -
pPmt
public static double pPmt(double rate, double per, double nPer, double PV, double fv, boolean due) -
pmt
public static double pmt(double rate, double nPer, double pv, double fv, boolean due) -
pV
public static double pV(double rate, double nper, double pmt, double fv, boolean due) -
rate
public static double rate(double nPer, double pmt, double PV) -
rate
public static double rate(double nPer, double pmt, double PV, double fv) -
rate
public static double rate(double nPer, double pmt, double PV, double fv, boolean type) -
rate
public static double rate(double nPer, double pmt, double PV, double fv, boolean due, double guess) -
sLN
public static double sLN(double cost, double salvage, double life) -
sYD
public static double sYD(double cost, double salvage, double life, double period) -
isArray
-
isDate
-
isError
-
isMissing
-
isNull
-
isNumeric
-
isObject
-
typeName
-
abs
public static double abs(double number) -
atn
public static double atn(double number) -
cos
public static double cos(double number) -
exp
public static double exp(double number) -
log
public static double log(double number) -
round
public static double round(double number) -
round
public static double round(double number, int numDigitsAfterDecimal) -
sgn
public static int sgn(double number) -
sin
public static double sin(double number) -
sqr
public static double sqr(double number) -
tan
public static double tan(double number) -
asc
-
ascB
-
ascW
-
chr
-
chrB
-
chrW
-
formatCurrency
-
formatCurrency
-
formatCurrency
-
formatCurrency
-
formatCurrency
-
formatDateTime
-
formatDateTime
-
formatNumber
-
formatNumber
-
formatNumber
-
formatNumber
-
formatNumber
-
formatPercent
-
formatPercent
-
formatPercent
-
formatPercent
-
formatPercent
-
inStr
-
inStr
-
inStr
-
inStrRev
-
inStrRev
-
inStrRev
-
lCase
-
lTrim
-
left
-
mid
-
mid
-
monthName
-
rTrim
-
replace
-
replace
-
replace
-
replace
-
right
-
space
-
strComp
-
strComp
-
strReverse
-
string
-
trim
-
weekdayName
-