<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    as mentioned before, script variables work only with integer or
    string values. In this case I suggest you load the values as string
    and then use Lua to compute what you want as float. Alternative,
    load as string (n the format integer.decimals) and split the value
    using transformation in the part before the dot and the part after
    dot. Then you can do operations with them.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 8/23/11 9:35 PM, Brandon Armstead wrote:
    <blockquote
cite="mid:CACr1DbBRESdw1=hBsmBgg9HkcNykToJqEs67fohLQBd9UDBRbA@mail.gmail.com"
      type="cite">Daniel,
      <div><br>
      </div>
      <div>&nbsp; &nbsp;Sorry for taking so long to respond - I am still facing an
        issue with this (even in 3.1.4).</div>
      <div><br>
      </div>
      <div>I am loading the values from database.</div>
      <div><br>
      </div>
      <div>It looks as if the arithmetic operators are not functioning
        properly when the data is imported into kamailio from DB - I'm
        going to do some more research and give you some specifics.</div>
      <div><br>
      </div>
      <div>Sincerely,</div>
      <div>Brandon Armstead<br>
        <br>
        <div class="gmail_quote">On Thu, Jan 20, 2011 at 2:13 AM,
          Daniel-Constantin Mierla <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex;">
            <div class="im"><br>
              <br>
              On 1/19/11 7:50 AM, Klaus Darilion wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <br>
                <br>
                Am 18.01.2011 21:26, schrieb Brandon Armstead:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hello,<br>
                  <br>
                  &nbsp; &nbsp;Is there anything special that needs to be done for
                  float comparison?<br>
                  <br>
                  For example:<br>
                  <br>
                  if([5.5 &gt;= 4.3]) ....<br>
                </blockquote>
              </blockquote>
            </div>
            ^^^ this format is no longer supported starting with 3.0,
            just skip the square brackets, now it is working like in C.
            <div class="im"><br>
              <br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <br>
                  or<br>
                  if(5.5 &gt; 4.3) ....<br>
                  <br>
                  The conditional does not seem to be coming back as
                  true like it should?<br>
                </blockquote>
                <br>
                I have no idea if floating point comparison is
                supported, but you could multiple the values (e.g. *
                10000) before comparison<br>
              </blockquote>
            </div>
            The pseudo-variables can hold integer or strings. Do you do
            comparison with static values or you load the values in some
            variables and then compare?<br>
            <br>
            Cheers,<br>
            Daniel<br>
            <font color="#888888">
              <br>
              -- <br>
              Daniel-Constantin Mierla<br>
              Kamailio (OpenSER) Advanced Training<br>
              Jan 24-26, 2011, Irvine, CA, USA<br>
              <a moz-do-not-send="true" href="http://www.asipto.com"
                target="_blank">http://www.asipto.com</a><br>
              <br>
            </font></blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>