473,788 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Currency conversion

Hello guys,
I need to know the Currency conversion code in Javascript
Say for example i got 2 textbox .. where i enter a number (singapore
doller value) and i provide a button and in the next text box i should
get the value in US doller value.

Waiting for ur response,

Ciao,
Jay

Jul 22 '06
10 3895
Jay
Well thats nice .... Thanks Randy ... Even i like this attitude Mr.
Randy.

Ciao,
Jay

Randy Webb wrote:
Jay said the following on 7/25/2006 3:06 AM:
Oops .. thats the first idea (looking on the source code) striked me
once i started looking for the solution .. so the effort u have put to
help me of no use ..(am sorry to say this :) ) but i was trying for
some code (thats not the one which is there in the source of that site
) like that .

OK. You would need a database of some sort to contain all the currency
conversion rates, then you look up the conversion rate you need. The
Bahraini Dinar (I doubt I spelled those correctly) is 2.85 US Dollars to
one Dinar. You would need the conversion rates for any conversion you
planned to do.

That is the hard part. The easy part is looking it up, calculating, and
displaying the answer.
One thing Randy : "Actually, they all like me."

what does it say ? They all like's ur attitude or they are like
(resembles ur attitude) You.

They all respect me and my attitude. If one of them were to act exactly
like me, it probably wouldn't work more than 5 minutes (It's been tried
before).

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 26 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1702
by: News Guy | last post by:
Hello, Can someone tell me an easy way to convert a number with many trailing digits to a currency format and adding the '$' sign? Thanks. example Convert 34.77389993 to $34.77 Thanks, News Guy
2
574
by: Willing 2 Learn | last post by:
I'm still having trouble getting my program to do arithmetic in cents(keeping all #'s) then convert the answer in a format of dollars & cents. The main program should add, subtract, scalar multiply(by int)& show, have a constructor w/ & w/out arguments. Header file should have private data & all 6 functions from above.Class definition file should implement my ADT class. What I have so far: Main program #include "jahcurrency.h" #include...
4
9425
by: digitalavatar | last post by:
I am having a problem with my Access 2000 front end to a SQL 7 or 2000 database. I create a table in SQL with a field named, say, amt, data type MONEY. When I link the table in Access using ODBC, the field is defined as CURRENCY, as expected. Now, if I use SQL to populate the field with a 3- or 4-decimal amount like 1.234, it appears in the Access table as 1.23 only. If I expand the decimals to 3 places it will be 1.230; if the...
14
12745
by: Just starting out | last post by:
I am very new to C code and I'm having a lot of trouble with a homework assignment. This program is supposed to take the amount of Euros that the user enters and convert it to US dollars. It runs fine if the user enters a number, but if the user enters a letter it loops. I have been working on this for 3 hours now, trying different things
2
4629
by: Nissar Ahamed | last post by:
Currency Conversion is a tricky affair. Given the market rates, tt's not the same converting from USD to JPY (116.30) and from EUR to USD (1.3010) due to the conventions used for JPY and EUR. Has anyone got a simple solution that can do the job? I will need the source code if possible. EggHeadCafe.com - .NET Developer Portal of Choice http://www.eggheadcafe.com
13
12531
by: PerumalSamy | last post by:
Hi, i am developing software in asp.net using vb coding and MS ACCESS database. I created a crystal report for printing sales bill. Now i need to convert currency into words and need to print. ex: 3,250 as "Three Thousand Two Hundred and Fifty only". How can i write codings and make to print using crystal report. Thanks in advance.
3
6401
by: Concem01 | last post by:
Hello, I am a student a UMUC online and am currently taking C programming. I have never done any programming at all and was wondering if someon can help me with my class assignment. the assignment is that I write a C program that displays the title "Currency Conversion," and then write the names of five currencies and their equivalents to the US dollar. The five currencies and their current exchange rate are; 1 Yen = 0.008431 1...
7
3770
by: tararreb | last post by:
#include<stdio.h> /*This line is standard input output, # is directive, include is keyword, and stdio.h is header file*/ #include<stdlib.h> /*This line is standard input output, # is directive, include is keyword, and stdlib.h is standard library defininition*/ #include<math.h> /*This line is standard input output, # is directive, include is keyword, and math.h is mathematical declarations*/ main (void)
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10113
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7519
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4074
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2896
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.