Jump to content
  • 0
Sign in to follow this  
Guest

Someone help me convert this calculation to C #.?

Question

Guest

I did this calculation in Excel, and would like to apply it to a function.

 

Quote

A14 = nudLevel.Value

 

And the calc is

 

Quote

=10*A14+1,5^2,2+250*(A14/20)^4

 

Currently it is like this, of course full of errors, because I have not yet learned to move with operators

Quote

        private void nudLevel_ValueChanged(object sender, EventArgs e)
        {
            mEditorItem.Level = (int) nudLevel.Value;
            nudExp.Value = 10 * nudLevel.Value + 1.5 ^ 2,2 + 250 * (nudLevel.Value / 20) ^ 4;
        }

 

This is the button I'm modifying

It is a function that will automatically change the mob's XP depending on his level

 

If anyone can help me, I would appreciate it more

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Sign in to follow this  

×
×
  • Create New...