Home /Modules/impl/numeric_literals.sleela

numeric_literals.sleela

impl/tests/java_references/oop/numeric_literals.sleela · 11 line(s) · sleela

#sleela 3.0
spark;
material;
class P { void main() {
  long big = 3000000000L; print(big * 2);
  int million = 1_000_000; print(million + 1);
  double d = 2d; print(d / 4);
  double f = 1.5f; print(f * 2);
  print(0xFFL);
} }