# .args. -number:decimal use System.Globalization class X shared def main x as number = 1 assert x == 1 x = 2 assert x == 2 x = 3.0 assert x == 3 assert x == 3n assert x == 3d assert x == 3.0 x = 3n assert x == 3 assert x == 3n assert x == 3d assert x == 3.0 x = 3d assert x == 3 assert x == 3n assert x == 3d assert x == 3.0 x = 4.5 assert x == 4.5 one = 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 assert 1.0 == one assert one.toString(CultureInfo.invariantCulture) == '1.0' i = 1 j = 2 x = i / j assert x == 0.5 x = 3.0 y = 4.0 assert .checkNumber(x, y) == 7.0 assert .checkNumber(x, y) == 7.0d assert .checkDecimal(x, y) == 7.0d def checkNumber(a as number, b as number) as number return a + b def checkDecimal(a as decimal, b as decimal) as decimal return a + b