sml arithmetic operations

Addition, subtraction, multiplication and division.
[code language=”text”]
1+2;
10-2;
2*10;
9.0/3.0;
[/code]

Output:
[code language=”text”]
val it = 3 : int
val it = 8 : int
val it = 20 : int
val it = 3.0 : real
val it = () : unit
[/code]

Search within Codexpedia

Custom Search

Search the entire web

Custom Search