title: Trying to call math functions in BATCH Script but getting Random numbers for Result
body: <p>The script prompts the user to choose which calculation to perform (call). After I choose an option and calculate the numbers I get random results. Such as 4 + 5 = 27 and 4 * 4 = 0.</p>
  
  <pre><code>@echo off
  goto :main
  
  :addition
      set /a FNUM1=%~1
      set /a FNUM2=%~2
      set /a RESULT=FNUM + FNUM2
      echo RESULT: %RESULT%
  goto :eof
  
  :subtraction
      set /a FNUM1=%~1
      set /a FNUM2=%~2
      set /a RESULT=FNUM - FNUM2
      echo RESULT: %RESULT%
  goto :eof
  
  :multiplication
      set /a FNUM1=%~1
      set /a FNUM2=%~2
      set /a RESULT=FNUM * FNUM2
      echo RESULT: %RESULT%
  goto :eof
  
  :division
      set /a FNUM1=%~1
      set /a FNUM2=%~2
      set /a RESULT=FNUM / FNUM2
      echo RESULT: %RESULT%
  goto :eof
  
  :main
      echo Welcome to the calculator
      echo Please chose one of the following options:
      echo    1 - Addition
      echo    2 - Subtraction
      echo    3 - Multiplication
      echo    4 - Division
      echo    5 - Quit
  
      set /p CHOICE=
      if "%CHOICE%"=="1" (
          echo YOU CHOSE ADDITION!
          echo Enter first number:
          set /p NUM1=
          echo Added by:
          set /p NUM2=
          call :addition %NUM1% %NUM2%
      )
  
      if "%CHOICE%"=="2" (
          echo YOU CHOSE SUBTRACTION!
          echo Enter first number:
          set /p NUM1=
          echo Subtracted by:
          set /p NUM2=
          call :subtraction %NUM1% %NUM2%
      )
  
  
      if "%CHOICE%"=="3" (
          echo YOU CHOSE MULTIPLICATION!
          echo Enter first number:
          set /p NUM1=
          echo Multiplied by:
          set /p NUM2=
          call :multiplication %NUM1% %NUM2%
      )
  
      if "%CHOICE%"=="4" (
          echo YOU CHOSE DIVISION!
          echo Enter first number:
          set /p NUM1=
          echo Divided by:
          set /p NUM2=
          call :division %NUM1% %NUM2%
      )
  
      if "%CHOICE%"=="5" (
          echo Good Bye!
      )
  goto :eof
  </code></pre>
  
  <p>I tried to use "/a" for setting FNUM1 and FNUM2, but I still get random results.</p>
  
  <p>Thanks for any advice.</p>