RosettaCodeData/Task/Literals-Integer/OCaml/literals-integer.ml
2024-10-16 18:07:41 -07:00

8 lines
205 B
Standard ML

# 727 = 0b1011010111;;
- : bool = true
# 727 = 0o1327;;
- : bool = true
# 727 = 0x2d7;;
- : bool = true
# 12345 = 12_345 (* underscores are ignored; useful for keeping track of places *);;
- : bool = true