webprogramer Posted April 20, 2012 Share Posted April 20, 2012 In The Name Of God Hello ,Excuse me I want to write Convert Currency Web Page (with JavaScript) But I dont Know Manner(algorithm) example: 1dollar is 12260 rial(IRR) Thanks, GoodLuck&GoodBay Link to comment Share on other sites More sharing options...
Ingolme Posted April 20, 2012 Share Posted April 20, 2012 But currency values change every single day. You would need to rely on information from a bank. If you want a basic conversion, though, just do the operation. function dollarsToRial(amount) { return amount * 12260;} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.