Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Javascript 四捨五入
MaxYang
follow
0
7-29-2008 5:49 AM
46 views
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
Is your PC hackable?
High cost of low prices
Breakfast with Saint Peter: gorgeous article
World Press Photo competition 2008 winners
Book Art Photography
Pixdaus, God Gave Us Pics!
Please don't laugh at our village's funny ...
More clips from
MaxYang
保健正夯 牛樟芝生技頻創新
javascript select
Today's Top Clips
What pets do when we're at work.....
Made From Snow
Thousands of New Species Discovered on Tiny Island
Is this the world's oldest living creature?
Dog saves dog on freeway
The effects of stress are wide-reaching.
"State Secret: Thousands Secretly Sterilized"
With or without flash
Big Brother
Our Emotions are interdependnt with people we don't know
visit the
Top Clips page
View the Top Clips from
July 29, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/f9743bc1-3b3c-4bf0-adcc-d63f5c323855/2F8CB768-338C-4A2B-BD38-2320636B4048/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://blog.csdn.net/zhiduoxing/archive/2006/01/12/576801.aspx" href="http://blog.csdn.net/zhiduoxing/archive/2006/01/12/576801.aspx" style="font-size: 11px;">blog.csdn.net</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://blog.csdn.net/zhiduoxing/archive/2006/01/12/576801.aspx"><DIV> <DIV><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" /><SPAN>//</SPAN><SPAN>将计算得到的结果四舍五入 </SPAN><SPAN><BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" /></SPAN><SPAN><BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" alt="" id="_17_81_Open_Image" /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" alt="" id="_17_81_Closed_Image" /></SPAN><SPAN id="_17_81_Closed_Text">/**/</SPAN><SPAN id="_17_81_Open_Text"><SPAN>/*</SPAN><SPAN> * ForDight(Dight,How):数值格式化函数,Dight要 * 格式化的 数字,How要保留的小数位数。 </SPAN><SPAN>*/</SPAN></SPAN><SPAN> <BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" /><BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" /></SPAN><SPAN>function</SPAN><SPAN> ForDight(Dight,How)<BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" /><BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" alt="" id="_116_204_Open_Image" /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" alt="" id="_116_204_Closed_Image" /> </SPAN><SPAN id="_116_204_Closed_Text">...</SPAN><SPAN id="_116_204_Open_Text"><SPAN>{ <BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" alt="" /><BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" alt="" /></SPAN><SPAN>var</SPAN><SPAN> Dight </SPAN><SPAN>=</SPAN><SPAN> Math.round (Dight</SPAN><SPAN>*</SPAN><SPAN>Math.pow(</SPAN><SPAN>10</SPAN><SPAN>,How))</SPAN><SPAN>/</SPAN><SPAN>Math.pow(</SPAN><SPAN>10</SPAN><SPAN>,How); <BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" alt="" /><BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" alt="" /></SPAN><SPAN>return</SPAN><SPAN> Dight; <BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" alt="" /><BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</SPAN></SPAN><SPAN> <BR /><IMG align="top" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" /></SPAN></DIV> </DIV></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/2F8CB768-338C-4A2B-BD38-2320636B4048/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK