Help - Search - Members - Calendar
Full Version: HTML/Java
HTMLHelp Forums > Programming > Client-side Scripting
stuart sanderson
[font=Arial]
Dear Help Forum,
Can somebody please tell me the computer HTML (or Java) code for rounding a mathematical calculation to a specified number of decimal places:
e.g.,
- multiply 2.6 by 2.33 gives the answer 6.058. How do I round that to 2 decimal places - i.e., 6.06?
Thanks in advance,

Stuart Sanderson
Effovex
HTML can't do that. Java seems a bit heavy for this purpose. You're looking for JavaSCRIPT, which is entirely different from Java.

number rounding in javascript

Also, this belongs in the client-side scripting section, I believe. Certainly not in Feedback and Assistance, anyway.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.