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