<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>游戏策划 Design Inside &#187; CEILING函数</title>
	<atom:link href="http://www.youxicehua.com/archives/tag/ceiling%e5%87%bd%e6%95%b0/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youxicehua.com/archives</link>
	<description>在路上的游戏人 www.youxicehua.com</description>
	<lastBuildDate>Sun, 18 Dec 2011 15:42:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CEILING函数以及MAX函数</title>
		<link>http://www.youxicehua.com/archives/403</link>
		<comments>http://www.youxicehua.com/archives/403#comments</comments>
		<pubDate>Sat, 31 Oct 2009 13:59:36 +0000</pubDate>
		<dc:creator>达达尼昂</dc:creator>
				<category><![CDATA[个人原创]]></category>
		<category><![CDATA[CEILING函数]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[MAX函数]]></category>

		<guid isPermaLink="false">http://www.youxicehua.com/archives/403</guid>
		<description><![CDATA[今天在演算回合战斗的时候碰到了2个问题，最后均用EXCEL函数解决了。

1、[向上取整]的问题。

回合战斗，计算出了战斗回合数，有小数，直接用INT取整。

后来感觉不对，回合战斗只要出现了小数，就算只是多了0.01，也应该多算一回合。

于是，需要[向上取整]来解决。

<span class="readmore"><a href="http://www.youxicehua.com/archives/403" title="CEILING函数以及MAX函数">阅读全文——共829字</a></span>]]></description>
			<content:encoded><![CDATA[<p>今天在演算回合战斗的时候碰到了2个问题，最后均用EXCEL函数解决了。</p>
<p><strong>1、[向上取整]的问题。</strong><br />
回合战斗，计算出了战斗回合数，有小数，直接用INT取整。<br />
后来感觉不对，回合战斗只要出现了小数，就算只是多了0.01，也应该多算一回合。<br />
于是，需要[向上取整]来解决。</p>
<p>【解决方案】：<strong>CEILING函数</strong><br />
CEILING(number,significance)）<br />
CEILING是天花板的意思，这个函数也就是[向上取整]的意思。<br />
number是所取的原始值，significance是需要四舍五入的倍数。</p>
<p><strong>2、[负数归零]问题。</strong><br />
当防御够高，攻击不足以造成伤害时，应将运算出的“负数”伤害归“零”（或者以“一”表示）。</p>
<p>【解决方案】：<strong>MAX函数</strong><br />
MAX(number,0)<br />
MAX函数是取（）中的最大值。让一个值与“零”进行“最大值对比”，则负数会始终显示为“零”。</p>
<p>&#8212;&#8212;&#8212;-游戏策划分割线&#8212;&#8212;&#8212;-</p>
<p><strong>CEILING函数</strong></p>
<p>语法<br />
CEILING(number,significance)<br />
Number 要四舍五入的数值。<br />
Significance  是需要四舍五入的乘数。</p>
<p>说明<br />
如果参数为非数值型，CEILING 返回错误值 #VALUE!。<br />
无论数字符号如何，都按远离 0 的方向向上舍入。如果数字已经为 Significance 的倍数，则不进行舍入。<br />
如果 Number 和 Significance 符号不同，CEILING 返回错误值 #NUM!。</p>
<p><strong>MAX函数</strong></p>
<p>语法<br />
MAX(number1,number2,&#8230;)<br />
Number1, number2, &#8230;    是要从中找出最大值的 1 到 30 个数字参数。</p>
<p>说明<br />
可以将参数指定为数字、空白单元格、逻辑值或数字的文本表达式。如果参数为错误值或不能转换成数字的文本，将产生错误。<br />
如果参数为数组或引用，则只有数组或引用中的数字将被计算。数组或引用中的空白单元格、逻辑值或文本将被忽略。如果逻辑值和文本不能忽略，请使用函数 MAXA 来代替。<br />
如果参数不包含数字，函数 MAX 返回 0（零）。 </p>
<h3>Related Posts</h3><ul><li><a href="http://www.youxicehua.com/archives/440" title="游戏策划常用工具[GameDesign半年工作总结之一] 2009.12.29">游戏策划常用工具[GameDesign半年工作总结之一]</a>(9)</li>
<li><a href="http://www.youxicehua.com/archives/412" title="EXCEL不等于如何表示？ 2009.11.18">EXCEL不等于如何表示？</a>(0)</li>
<li><a href="http://www.youxicehua.com/archives/404" title="Excel IF函数 2009.11.2">Excel IF函数</a>(0)</li>
<li><a href="http://www.youxicehua.com/archives/398" title="Excel中查找重复数据 2009.10.16">Excel中查找重复数据</a>(0)</li>
<li><a href="http://www.youxicehua.com/archives/394" title="Vlookup函数 2009.09.24">Vlookup函数</a>(1)</li>
</ul><h3>Recent Comments</h3><ul></ul></hr>
<p><small>© 达达尼昂 for <a href="http://www.youxicehua.com/archives" title="游戏策划 达达尼昂的游戏博客">游戏策划 Design Inside</a>, 2009. |
<a href="http://www.youxicehua.com/archives/403" title="CEILING函数以及MAX函数">《CEILING函数以及MAX函数》</a> |
<a href="http://www.youxicehua.com/archives/403#comments">暂无评论 何不沙发</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.youxicehua.com/archives/403&title=CEILING函数以及MAX函数">del.icio.us</a>
<br/>
Post tags: <a href="http://www.youxicehua.com/archives/tag/ceiling%e5%87%bd%e6%95%b0" rel="tag">CEILING函数</a>, <a href="http://www.youxicehua.com/archives/tag/excel" rel="tag">excel</a>, <a href="http://www.youxicehua.com/archives/tag/max%e5%87%bd%e6%95%b0" rel="tag">MAX函数</a> <img src="http://img.tongji.linezing.com/930579/tongji.gif"><br/>
</small></br>
<a href=http://www.youxicehua.com title="游戏策划" target=_blank><img src=http://www.youxicehua.com/banner.gif border=0></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.youxicehua.com/archives/403/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

