Click here to Skip to main content
15,898,035 members
Home / Discussions / Web Development
   

Web Development

 
QuestionIE and Fire Fox issues Pin
_tasleem2-May-07 9:26
_tasleem2-May-07 9:26 
AnswerRe: IE and Fire Fox issues Pin
Guffa2-May-07 9:37
Guffa2-May-07 9:37 
GeneralRe: IE and Fire Fox issues Pin
_tasleem2-May-07 9:54
_tasleem2-May-07 9:54 
AnswerRe: IE and Fire Fox issues Pin
Guffa2-May-07 10:58
Guffa2-May-07 10:58 
GeneralRe: IE and Fire Fox issues Pin
George L. Jackson2-May-07 12:55
George L. Jackson2-May-07 12:55 
AnswerRe: IE and Fire Fox issues Pin
George L. Jackson2-May-07 12:38
George L. Jackson2-May-07 12:38 
QuestionWeb Service & Directories Pin
royk1232-May-07 9:24
royk1232-May-07 9:24 
Questionjavascipt math.... Pin
Fred_Smith2-May-07 7:29
Fred_Smith2-May-07 7:29 
Hi - In the little page below, which multiplies two numbers, how can I ensure that I get the "right" answer instead of some approximation? If, for example, I enter 79.32 in the first box and 10 in the second, instead of getting 793.2 I get 793.1999999999999

thanks.. Fred

<html>
<head>
<script language="javascript" >
<!--
function timesTB() {
var a = document.getElementById("tb1");
var b = document.getElementById("tb2");
var z = (parseFloat(a.value) * parseFloat(b.value)).toString();
document.getElementById("tbSum").value = z;
}
// -->
</script>
</head>
<body>
<form name="f1" action="">
<input type="text" id="tb1" onblur="timesTB()" value="1" >
<input type="text" id="tb2" onblur="timesTB()" value="1" >
<input type="text" id="tbSum" >
</form>
</body>
</html>

AnswerRe: javascipt math.... Pin
Guffa2-May-07 8:55
Guffa2-May-07 8:55 
GeneralRe: javascipt math.... Pin
Fred_Smith2-May-07 9:43
Fred_Smith2-May-07 9:43 
AnswerRe: javascipt math.... Pin
Guffa2-May-07 10:57
Guffa2-May-07 10:57 
GeneralRe: javascipt math.... Pin
Fred_Smith2-May-07 11:13
Fred_Smith2-May-07 11:13 
AnswerRe: javascipt math.... Pin
Guffa2-May-07 11:21
Guffa2-May-07 11:21 
Questionhtml form limitation? Pin
gus_br2-May-07 3:10
gus_br2-May-07 3:10 
AnswerRe: html form limitation? Pin
led mike2-May-07 4:35
led mike2-May-07 4:35 
QuestionScroll!! urgent Pin
dheema2-May-07 0:26
dheema2-May-07 0:26 
QuestionWeb App Setup Pin
tadhg881-May-07 22:30
tadhg881-May-07 22:30 
AnswerRe: Web App Setup Pin
kubben2-May-07 2:14
kubben2-May-07 2:14 
GeneralRe: Web App Setup Pin
tadhg882-May-07 2:18
tadhg882-May-07 2:18 
GeneralRe: Web App Setup Pin
kubben2-May-07 2:20
kubben2-May-07 2:20 
QuestionActiveX usage Pin
scooterinwi1-May-07 10:02
scooterinwi1-May-07 10:02 
GeneralRe: Making sure that only MYapplication can using MY webservice? Pin
Cormac M Redmond1-May-07 4:26
Cormac M Redmond1-May-07 4:26 
GeneralRe: Making sure that only MYapplication can using MY webservice? Pin
kubben1-May-07 4:32
kubben1-May-07 4:32 
QuestionATLAS.NET Pin
Bhupendra Rana1-May-07 0:03
Bhupendra Rana1-May-07 0:03 
QuestionFTP Error, 550 Error code Pin
btsrinath30-Apr-07 10:32
btsrinath30-Apr-07 10:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.