Random Logic Posted April 17, 2013 Share Posted April 17, 2013 (edited) I am programming a few functions into an Adobe Acrobat PDF file and for some reason this isn't working. Am i missing something? function psychro_pv1(db, wb, atm){var pvp = psychro_pvs(wb);var ws = (pvp / (atm - pvp)) * 0.62198;var hl = 1093.049 + (0.441 * (db - wb));var ch = 0.24 + (0.441 * ws);var wh = ws - (ch * (db - wb) / hl);event.value = atm * (wh / (0.62198 + wh)); }event.value = pvp; edit: the function psychro_pvs is a working function established before this one. Edited April 17, 2013 by Random Logic Link to comment Share on other sites More sharing options...
Ingolme Posted April 17, 2013 Share Posted April 17, 2013 If any of the arguments you're receiving could possibly strings you should ensure they're numbers.For example: db = Number(db); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now