Frame Calculator issue in C#
<p>Hello I am working a frame calculator in C# and right now it works just fine however when I use a of 100 or above it does not do it right, it gives the same answer 23.333. I need help getting it to work above 100, I am kinda new to C# as well. All it is suppose to do is take a number subtract 30 and then divide it by 3 to give you your frames.</p>

<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace WindowsFormsApplication1

{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {



            int inNum;

            inNum = (int)numericUpDown1.Value; // using a numericupdown to get user input
            double outNum;
            outNum = (inNum - 30F) / 3F;
            label4.Text = outNum.ToString("f3"); // using a label to display result to user
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
</code></pre>
