source:
orxonox.OLD/branches/script_engine/src/lib/script_engine/account.lua
@
7702
Last change on this file since 7702 was 7702, checked in by snellen, 18 years ago | |
---|---|
|
|
File size: 197 bytes |
Line | |
---|---|
1 | -- |
2 | -- Luna Account example |
3 | -- |
4 | local a = Account{balance=100} |
5 | a:deposit(50.00) |
6 | a:withdraw(25.00) |
7 | print("Account balance = $"..a:balance()) |
8 | |
9 | local e = Euclid() |
10 | print("Euclid gcd = "..e:gcd(10000,2)) |
Note: See TracBrowser
for help on using the repository browser.