473,386 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

euro

8
var euroRate

var response;

var amountInPounds, amountInEuros;

function twoDPs(anyNumber)
{
return Math.round (100 * anyNumber) / 100
};

function setEuroRate()
{
window.prompt('What is the current Euro rate?','')
}

When the user inputs the current Euro rate how do I assign it to the variable?
Mar 9 '06 #1
1 1544
Banfa
9,065 Expert Mod 8TB
You could easily find the answer to this question by checking an site that has a Javascript reference for instance http://www.w3schools.com

However the answer is that the value is returned as the return value of the function prompt so you just asign it to a variable in the normal way

var rate = window.prompt('What is the current Euro rate?','')
Mar 10 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Robert Zierhofer | last post by:
hi there, it seems as if i can´t convert the euro and pound sign to their html equivalents. i tried eregi_replace("€", "€", $haystack); eregi_replace("£", "£", $haystack); as...
5
by: Lars | last post by:
Why doesn't the W3C's HTML Validator recognize € and what do I have to do to make my html-file valid?
11
by: MH | last post by:
Thai may have been asked before but I'm new here.... How can I put the Euro symbol, ? using alt0128 in my page and get it validated as HTML 4.01 ? -------------- MH
18
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
2
by: tilmann | last post by:
We are using ASCII-Tablespaces with the Codepage 819 on z/OS. We're now having a problem with the EURO symbol. The data is inserted from a Windows-Client, running Codepage 1252. The Euro symbol is...
5
by: SalamElias | last post by:
I followed instructions in MSDN help articles and wrotethe folowing code in order to display numeric numbers with Euro symbol as follows : ---------------------------- Dim OutString As = "" Dim...
8
by: Max | last post by:
My client has decided to use the Euro for the entire web site. Is there an easy way to get my ASP.NET app to format currency to Euro instead of US-dollar? Right now it's just reading the server...
7
by: kingski | last post by:
Any idea about this ? http://www.developerfusion.co.uk/forums/thread/114379/#114379 "Can any one help me as i am building a shopping cart and it supports multiple currencies but while sending...
4
by: Kim | last post by:
Inserting a record through sql (asp, msaccess textfield), inserting the euro sign "?" shows up like a questionmark "?" in the output. I have <%@ LANGUAGE="VBSCRIPT" CodePage=28591 LCID=2077 %at...
7
by: Robertu | last post by:
Hi at all I'ld want inserrt into my emails body the ? euro symbol therefore I wrote the header of my emails like : $headers="From: $mail_from\n\r"; $headers.='X-Mailer: PHP/' ....
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.