<cfloop from="1" to="9" index="i">
<cfoutput>
<cfset a = -1*(35 + (i/10))>
#a# = #round(a)#<br>
</cfoutput>
</cfloop>
-35.1 = -35
-35.2 = -35
-35.3 = -35
-35.4 = -35
-35.5 = -35
-35.6 = -36
-35.7 = -36
-35.8 = -36
-35.9 = -36
You see, the .5 still rounds up, which is -35. The .6 rounds down to
-36, as it is one of the 4 "smallest" (think most negative) tenths in
the range or -35.1 through -35.9.
</plaintext><br> <br> Phyo Pine wrote: <blockquote
cite="[EMAIL PROTECTED]"
type="cite"> <pre wrap="">Ok. Then, why -35.6 does not round up to -35 ?
#Round(-35.6)# actually shows -36. That kinda confuses me. Thanks, Pine
</pre> <blockquote type="cite"> <pre wrap="">Round always rounds up,
that is +1, so with a negative number it goes from - 35.5 to just -35,
it rounded up. On 2/14/06, PINE Phyo Z
<[EMAIL PROTECTED]> wrote: </pre> </blockquote> <pre
wrap=""><!---->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232238
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54