RosettaCodeData/Task/Literals-Integer/OCaml/literals-integer.ml

9 lines
205 B
OCaml
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# 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