<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Infinity as a double in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557028#M60370</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;They are defined as FlexScript macros in the main tree.&lt;/P&gt;&lt;P&gt;MAIN:/project/exec/globals/fsmacros&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27373-global-macros-max-limits.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501823iC5F721128792B3E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="27373-global-macros-max-limits.png" alt="27373-global-macros-max-limits.png" /&gt;&lt;/span&gt;&lt;/P&gt;You write in your code only the name of macro to get the value returned.&lt;/DIV&gt;</description>
    <pubDate>Thu, 16 Apr 2020 02:50:44 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2020-04-16T02:50:44Z</dc:date>
    <item>
      <title>Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557027#M60369</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 18.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Is there an intended way to assign the value of infinity to a double?&lt;BR /&gt;&lt;BR /&gt;I can produce the value from the expression 1/0, but I was wondering if there is some intended way to specifically return that value so that I can assign a double to that value. Something like "double.inf" or some kind of Global Macro (like INT_MAX).&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Apr 2020 00:16:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557027#M60369</guid>
      <dc:creator>jeremy_r</dc:creator>
      <dc:date>2020-04-16T00:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557028#M60370</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;They are defined as FlexScript macros in the main tree.&lt;/P&gt;&lt;P&gt;MAIN:/project/exec/globals/fsmacros&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27373-global-macros-max-limits.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1501823iC5F721128792B3E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="27373-global-macros-max-limits.png" alt="27373-global-macros-max-limits.png" /&gt;&lt;/span&gt;&lt;/P&gt;You write in your code only the name of macro to get the value returned.&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Apr 2020 02:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557028#M60370</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-04-16T02:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557029#M60371</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Neither of those macros seems to actually return infinity though.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;double test = 1/0;
return test;&lt;/PRE&gt;&lt;P&gt;The above code returns a value that the console displays as "inf".&lt;/P&gt;&lt;P&gt;But if I use GLOBAL_DELAYINDEFINITE or GLOBAL_UNREACHABLE, I get the value that appears as the macro definition.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Apr 2020 03:24:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557029#M60371</guid>
      <dc:creator>jeremy_r</dc:creator>
      <dc:date>2020-04-16T03:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557030#M60372</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Maybe I made a mistake and took a picture of wrong macros. Perhaps you look by yourself in node fsmacros of main tree. Or the values are large enough to be seen as infinite to limit needed space in system memory. And perhaps you describe where and why you need such a large value.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Apr 2020 03:33:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557030#M60372</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-04-16T03:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557031#M60373</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I had taken a look at those macros before asking the question, but wasn't able to find anything, which is why I asked on the forums, in case I had missed it.&lt;BR /&gt;&lt;BR /&gt;I probably could just use a very large value rather than floating-point infinity. However, since FlexSim clearly already supports floating-point infinity (as demonstrated when you try to divide by zero), I was hoping to use that value instead of a really large value for semantic reasons (and clarity of code).&lt;BR /&gt;&lt;BR /&gt;I had hoped there might be some built-in way in FlexScript to assign infinity to a double (since calculating 1/0 to access it concerns me, given that in a purely mathematical sense that's not correct). But perhaps the answer is simply that there is no such method.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Apr 2020 06:55:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557031#M60373</guid>
      <dc:creator>jeremy_r</dc:creator>
      <dc:date>2020-04-17T06:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557032#M60374</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/220/jordan.j.html" nodeid="220"&gt;@Jordan Johnson&lt;/A&gt;, &lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@phil.bobo&lt;/A&gt;, does FlexSim have any way to represent infinity?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Apr 2020 14:43:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557032#M60374</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2020-04-17T14:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557033#M60375</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/207/anthony.j.html" nodeid="207"&gt;@anthony.johnson&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Apr 2020 14:44:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557033#M60375</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2020-04-17T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557034#M60376</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;There is no macro that returns infinity in FlexScript. You can try 1 / 0, but I'm not sure that is the same as C++'s std::numeric_limits&amp;lt;double&amp;gt;::infinity, and I don't know why just using one of the existing macros (or defining your own) would not suffice.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Apr 2020 15:29:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557034#M60376</guid>
      <dc:creator>anthony_johnsonT83CM</dc:creator>
      <dc:date>2020-04-17T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity as a double</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557035#M60377</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;What existing macro returns the max value of a double? Should a user be using GLOBAL_UNREACHABLE for that?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Apr 2020 15:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/infinity-as-a-double/m-p/13557035#M60377</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2020-04-17T15:58:56Z</dc:date>
    </item>
  </channel>
</rss>

