<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    On 2/21/11 10:28 AM, 侯旭光 wrote:
    <blockquote
      cite="mid:AANLkTi=NeuE4Xzbs3rs83pZKxQ7CO5_9rMheqasTc_w8@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="font-family:
        arial,sans-serif; font-size: 13px; border-collapse: collapse;">Hello 
        <div><br>
        </div>
        <div>I need to add q value while using  function
          append_branch(),but the function only takes decimal fraction
          as the parameter.</div>
        <div>What if I want to use pv to add q value?</div>
        <div>The $var and $avp just have string and integer type.</div>
        <div>Thanks a lot!</div>
      </span>
      <pre wrap="">
</pre>
    </blockquote>
    do:<br>
    <br>
    km_append_branch("$var(branchuri)");<br>
    $(branch(q)[-1]) = $var(q);<br>
    <br>
    $var(q) has to hold an integer value that represents the decimal
    fraction value multiplied with 100 (so if q should be 0.5, then
    $var(q) = 50).<br>
    <br>
    Cheers,<br>
    Daniel<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></pre>
  </body>
</html>