<?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"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: &#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm</title>
		<atom:link href="http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 00:54:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-24874</guid>
					<title><![CDATA[&#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm]]></title>
					<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-24874</link>
					<pubDate>Tue, 14 Mar 2006 10:07:46 +0000</pubDate>
					<dc:creator>kawkhins</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I found a different behaviour between OSX and Win for int object.<br />
When it receives float -infinity :<br />
* on OSX, returns minimal integer : -2147483648<br />
* on Win, returns zero</p>
<p>The behaviour on windows is buggy, float -infinity cannot be int zero.</p>
<p>-inf is obtained by sending zero to atodb. (So my custom vumeters, which<br />
are working fine on OSX are broken on windows)</p>
<p>the problem is the same for int box number.</p>
<p>Best regards,<br />
Chris</p>
<p>NB: see below simple patch to test this</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P message 325 54 14 196617 1;<br />
#P number 222 152 79 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 186 152 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 204 130 27 196617 float;<br />
#P message 306 54 14 196617 0;<br />
#P newex 306 79 31 196617 atodb;<br />
#P flonum 306 99 105 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P number 306 152 116 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 306 133 27 196617 int;<br />
#P connect 5 0 6 0;<br />
#P connect 2 0 5 0;<br />
#P connect 5 0 7 0;<br />
#P connect 4 0 3 0;<br />
#P connect 8 0 3 0;<br />
#P connect 3 0 2 0;<br />
#P connect 2 0 0 0;<br />
#P connect 0 0 1 0;<br />
#P window clipboard copycount 9;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72530</guid>
					<title><![CDATA[Re: &#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm]]></title>
					<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72530</link>
					<pubDate>Tue, 14 Mar 2006 11:35:50 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>The obvious suspect is differences in the implementation of IEEE 754  <br />
at either the level of mathlib.c, the OS, or the processor. So it&#8217;s  <br />
not as if it&#8217;s directly Max&#8217; &#8220;fault&#8221;.</p>
<p>Still, Max&#8217; developers seem to take pride in its cross-platform  <br />
compatibility, and it would be a Good Thing if the idiosyncrasies of  <br />
Mac vs. Windows implementations of IEEE 754 could be overcome.</p>
<p>I don&#8217;t know off-hand what IEEE 754 specifies when typecasting float  <br />
infinities to integer. I think min/max int values are the most  <br />
logical (i.e., what happens on Mac OS).</p>
<p>&#8211; Peter</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8211;    <a href="http://www.bek.no/~pcastine/Litter/" rel="nofollow">http://www.bek.no/~pcastine/Litter/</a>    &#8212;&#8212;&#8212;&#8212;-<br />
Peter Castine    |        +&#8211;> Litter Power &#038; Litter Bundle for Jitter<br />
                  |&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
<a href="mailto:p@castine.de">p@castine.de</a>     | iCE:  Sequencing, Recording, and Interface Building<br />
<a href="mailto:pcastine@gmx.net">pcastine@gmx.net</a> |       for Max/MSP<br />
<a href="mailto:pcastine@bek.no">pcastine@bek.no</a>  | <a href="http://www.dspaudio.com/" rel="nofollow">http://www.dspaudio.com/</a>             Extremely cool<br />
<a href="mailto:4-15@kagi.com">4-15@kagi.com</a>    |&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
                  | home|chez nous|wir|i nostri  <a href="http://www.castine.de/" rel="nofollow">http://www.castine.de/</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72531</guid>
					<title><![CDATA[Re: &#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm]]></title>
					<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72531</link>
					<pubDate>Tue, 14 Mar 2006 14:19:15 +0000</pubDate>
					<dc:creator>Roman Thilenius</dc:creator>

					<description>
						<![CDATA[
						<p>
i would not have known the details peter knows,<br />
but would have guessed the same: calculation<br />
in MAX uses mathlib, so it is a mathlib issue.</p>
<p>maybe it is not even a windows mathlib error,<br />
we could call it a mac os bug as well, int isn t <br />
exactly a number isn t it? we should not exspect<br />
to display number box anything else than numbers,<br />
it will not display pi, and we can not exspect it <br />
to display inf. :)</p>
<p>it is a great service already than numbox displays<br />
NaN where neccessary.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72532</guid>
					<title><![CDATA[Re: &#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm]]></title>
					<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72532</link>
					<pubDate>Tue, 14 Mar 2006 21:11:03 +0000</pubDate>
					<dc:creator>kawkhins</dc:creator>

					<description>
						<![CDATA[
						<p>number box is one part of the problem, but &#8220;int&#8221; object is another.<br />
it should pass a value to outlet indicating an approximation of -inf. <br />
for int, the best is -2147&#8230;..</p>
<p>I guess the problem is the same with +inf.</p>
<p>Chris</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72533</guid>
					<title><![CDATA[Re: &#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm]]></title>
					<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72533</link>
					<pubDate>Tue, 14 Mar 2006 22:12:34 +0000</pubDate>
					<dc:creator>Andrew Pask</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks Chris,</p>
<p>
I think it should work the way it does on the Mac too.</p>
<p>-A</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72534</guid>
					<title><![CDATA[Re: &#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm]]></title>
					<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72534</link>
					<pubDate>Wed, 15 Mar 2006 08:17:02 +0000</pubDate>
					<dc:creator>kawkhins</dc:creator>

					<description>
						<![CDATA[
						<p>
> I think it should work the way it does on the Mac too.<br />
yes, this is the main point, to have cross plateform compatible patchs.</p>
<p>Chris</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72535</guid>
					<title><![CDATA[Re: &#039;int&#039; object gives different results when receiving -inf between Mac OSX and Windows (maxm]]></title>
					<link>http://cycling74.com/forums/topic/int-object-gives-different-results-when-receiving-inf-between-mac-osx-and-windows-maxm/#post-72535</link>
					<pubDate>Thu, 16 Mar 2006 16:41:46 +0000</pubDate>
					<dc:creator>Andrew Pask</dc:creator>

					<description>
						<![CDATA[
						<p>OK, here&#8217;s the deal.</p>
<p>This issue is processor specific. The feeling among the developers is that if the c language doesn&#8217;t take a stand on this then it may be for some good reason. The conversion should be treated as undefined and worked around with something like this</p>
<p>#P window setfont &#8220;Fixedwidth Serif&#8221; 12.;<br />
#P flonum 141 222 44 12 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 177 300 15 0;<br />
#P toggle 58 313 15 0;<br />
#P window linecount 1;<br />
#P newex 175 267 99 9240588 > 2147483648.;<br />
#P newex 56 259 106 9240588 < -2147483648.;<br />
#P message 118 151 36 9240588 -1.;<br />
#P message 69 152 29 9240588 1.;<br />
#P newex 82 192 36 9240588 / 0.;<br />
#P connect 0 0 3 0;<br />
#P connect 0 0 7 0;<br />
#P connect 0 0 4 0;<br />
#P connect 4 0 6 0;<br />
#P connect 3 0 5 0;<br />
#P connect 2 0 0 0;<br />
#P connect 1 0 0 0;<br />
#P window clipboard copycount 8;</p>
<p>Cheers</p>
<p>-A</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

