rawdevelopment Posted May 22, 2013 Share Posted May 22, 2013 Lets say user enters the number 3 on a form. The 3 is to represent 3% increase of a number that will be uploaded from a .csv file field (ex..100). I need to be able to covert the 3 to .03 to mutiply by the number in .csv then add the sum to the .csv field. (ex: .03*100+100=103). Does anyone have an idea on how to accomplish this in javascript. Help is much needed. Thanks Quote Link to comment Share on other sites More sharing options...
esmith Posted May 22, 2013 Share Posted May 22, 2013 var markup = Field("Percent")/100); var value = Field("Number"); return markup * value + value; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.