Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Editors Enhanced-html > Is there a way ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 50 of 114
Post > Topic >>

Is there a way to prevent Javascript from presenting calculated data from being...

by write@[EMAIL PROTECTED] (Giovanni Nicco) Aug 28, 2004 at 07:13 AM

try with this function:

<script>
function round(x,n){
	eval("y=10E"+(n-1))
	return Math.round(x*y)/y
}
do***ent.write(round(1/3,2))
</script>
 




 1 Posts in Topic:
Is there a way to prevent Javascript from presenting calculated
write@[EMAIL PROTECTED]   2004-08-28 07:13:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 17:56:38 CDT 2008.