![]() |
|
|
+ Search |
![]()
|
Mar 22nd, 2000 16:21
Martin Honnen,
Use the round function of http://www.faqts.com/knowledge-base/view.phtml/aid/1157/fid/209/lang/ plus the following function function formatPercentage (n) { return round(n * 100) + '%'; } Example: alert(formatPercentage(.4))