NEW-native-financial-import.sleela
lib/examples/sleela/NEW-native-financial-import.sleela · 11 line(s) · sleela
#sleela 1.7
import math;
import financial;
// NEW: calling a native library module through explicit imports.
class NewFinancialImport {
void main() {
print("future value = " + financial.future_value(1000.0, 0.05, 10.0));
print("CAPM = " + financial.capm(0.04, 1.2, 0.10));
}
}