langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
11
Task/Literals-Integer/Standard-ML/literals-integer.ml
Normal file
11
Task/Literals-Integer/Standard-ML/literals-integer.ml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
- 727 = 0x2d7;
|
||||
val it = true : bool
|
||||
- 727 = Word.toInt 0w727;
|
||||
val it = true : bool
|
||||
- 0w727 = 0wx2d7;
|
||||
val it = true : bool
|
||||
- ~727; (* negative number;
|
||||
* ~ is the unary negation operator for all numbers, including reals and ints;
|
||||
* worth mentioning because it's unusual
|
||||
*)
|
||||
val it = ~727 : int
|
||||
Loading…
Add table
Add a link
Reference in a new issue