   expectNumber:(x)->
     x = @getValue(x)
     if x == undefined
-      return 0
+      return Number(0)
     unless Utils.isNumber(x)
       @error(ERROR_VALUE)
     Number(x)
+
+  expectInteger:(x)->
+    parseInt @expectNumber(x)
 
   expectString:(x)->
     x = @getValue(x)

    Math.floor(expr/digit) * digit

  "FLOOR.PRECISE": (args)->
    @checkArgumentSize(args, 2)
    args[1] = Math.abs(@expectNumber(args[1]))
    if args[1] == 0
      return 0

    Math.ceil(expr/digit) * digit

  "CEILING.PRECISE": (args)->
    @checkArgumentSize(args, 1, 2)
    if args.length == 1
      args.push 1
    args[1] = Math.abs(@expectNumber(args[1]))
    @CEILING(args)


  "CEILING.MATH": (args)->
    @checkArgumentSize(args, 1, 3)
    if args.length == 1
      args.push 1
    expr = @expectNumber(args[0])
    digit = Math.abs(@expectNumber(args[1]))
    sign = 1
