I am not getting any error message. That's why I am assuming code is correct but obviously some problem in the code that's why it is not returning the euro.
It seems I have written the code in one cell. So not sure how to debug in parts. Can you please explain little more on how to debug in parts. Also I have only one function boptval which is supposed to return price of the option. but yes I can always see if table d1, d2 or d3 is correct. Can you please help in providing one example on how to debug in parts?
Also I am providing nas as input in boptval like boptval[100, 1, 0.2, 0.05, 2, "c", 100, 80]. So nas is 80. So don't see how function can recognize it as string.