<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><br>
      These fixes are on the web now. <br>
      <br>
      On 07/27/2015 04:10 AM, Timothy Stitt (TGAC) wrote:<br>
    </div>
    <blockquote cite="mid:D1DBB3B7.1CC29%25Timothy.Stitt@tgac.ac.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>
        <div>
          <div>Thanks Tim.</div>
          <div><br>
          </div>
          <div>I don't think those changes made their way into the
            v0.8.0 user guide that I have with my distribution.  Your
            suggestion did work though and my old script is now
            compiling again.</div>
          <div><br>
          </div>
          <div>Cheers.</div>
          <div>
            <p style="font-size: 12px; margin: 0px; font-family:
              Verdana;">---</p>
            <p style="margin: 0px; font-family: Verdana;"><span
                style="font-size: 10px;"><b>Timothy Stitt PhD</b> / Head
                of Scientific Computing</span></p>
            <p style="margin: 0px; font-family: Verdana;"><span
                style="font-size: 10px;">The Genome Analysis Centre
                (TGAC), Room 204b</span></p>
            <p style="margin: 0px; font-family: Verdana; color: rgb(4,
              46, 238);"><span style="text-decoration: underline;
                font-size: 10px;"><a moz-do-not-send="true"
                  href="http://www.tgac.ac.uk/">http://www.tgac.ac.uk/</a></span></p>
            <p style="margin: 0px; font-family: Cambria; min-height:
              19px;"><span style="font-size: 10px;"><br>
              </span></p>
            <p style="margin: 0px; font-family: Verdana;"><span
                style="font-size: 10px;">p: +44 1603 450378</span></p>
            <p style="margin: 0px; font-family: Verdana; color: rgb(13,
              102, 213);"><span style="color: rgb(0, 0, 0); font-size:
                10px;">e: <a moz-do-not-send="true"
                  href="mailto:timothy.stitt@tgac.ac.uk">timothy.stitt@tgac.ac.uk</a></span></p>
          </div>
        </div>
      </div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span>Tim Armstrong
          <<a moz-do-not-send="true"
            href="mailto:tim.g.armstrong@gmail.com">tim.g.armstrong@gmail.com</a>><br>
          <span style="font-weight:bold">Date: </span>Monday, 27 July
          2015 00:18<br>
          <span style="font-weight:bold">To: </span>Timothy Stitt <<a
            moz-do-not-send="true"
            href="mailto:timothy.stitt@tgac.ac.uk">timothy.stitt@tgac.ac.uk</a>><br>
          <span style="font-weight:bold">Cc: </span>"<a
            moz-do-not-send="true"
            href="mailto:swift-user@ci.uchicago.edu">swift-user@ci.uchicago.edu</a>"
          <<a moz-do-not-send="true"
            href="mailto:swift-user@ci.uchicago.edu">swift-user@ci.uchicago.edu</a>><br>
          <span style="font-weight:bold">Subject: </span>Re:
          [Swift-user] floor(), ceil() and round() issues with v0.8.0<br>
        </div>
        <div><br>
        </div>
        <blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"
          style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
          <div>
            <div>
              <div dir="ltr">
                <div>
                  <div>
                    <div>Hi Tim,<br>
                    </div>
                      The return type of those functions changed to
                    float in 0.8.0 as part of a bigger effort to
                    standardise the Swift library.  We tried to keep
                    things backwards compatible as much as possible but
                    unfortunately there wasn't a way to do that in this
                    case.<br>
                  </div>
                  <br>
                  You can get the same effect with toInt(floor(7.8))<br>
                  <br>
                </div>
                - Tim<br>
              </div>
              <div class="gmail_extra"><br>
                <div class="gmail_quote">On 26 July 2015 at 12:59,
                  Timothy Stitt (TGAC) <span dir="ltr">
                    <<a moz-do-not-send="true"
                      href="mailto:Timothy.Stitt@tgac.ac.uk"
                      target="_blank">Timothy.Stitt@tgac.ac.uk</a>></span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div style="word-wrap:break-word">
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px">Dear
                        Swift/T developers & users,</div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px"><br>
                      </div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px">I've
                        been recompiling a Swift/T script in v0.8.0
                        (which worked in previous versions) but its
                        failing to compile at the line involving the
                        floor() command. The error I'm seeing is:</div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px"><br>
                      </div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px">
                        <div>stc error:</div>
                        <div>test.swift:7:6: Cannot assign to t: LVal
                          has type int but RVal has type float</div>
                      </div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px"><br>
                      </div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px">I
                        know that this worked fine in previous versions
                        so I tried to compile with the trivial example
                        below and I get the same error:</div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px"><br>
                      </div>
                      <div>
                        <div><font face="Candara,sans-serif"
                            color="#183669">import math;</font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669">import io;</font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669">import sys;</font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669"><br>
                          </font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669">main</font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669">{</font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669"> int t = floor(7.8);</font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669"> trace(t);</font></div>
                        <div><font face="Candara,sans-serif"
                            color="#183669">}</font></div>
                      </div>
                      <div><font face="Candara,sans-serif"
                          color="#183669"><br>
                        </font></div>
                      <div><font face="Candara,sans-serif"
                          color="#183669">I substituted floor() for
                          ceil() and round() and got the same error. Is
                          there something wrong with the math library or
                          am I doing something really stupid that I
                          can't see.</font></div>
                      <div><font face="Candara,sans-serif"
                          color="#183669"><br>
                        </font></div>
                      <div>Thanks,</div>
                      <div><br>
                      </div>
                      <div>Tim.</div>
                      <div
style="color:rgb(24,54,105);font-family:Candara,sans-serif;font-size:14px">
                        <p
                          style="font-size:12px;margin:0px;font-family:Verdana">---</p>
                        <p style="margin:0px;font-family:Verdana"><span
                            style="font-size:10px"><b>Timothy Stitt PhD</b> / Head
                            of Scientific Computing</span></p>
                        <p style="margin:0px;font-family:Verdana"><span
                            style="font-size:10px">The Genome Analysis
                            Centre (TGAC), Room 204b</span></p>
                        <p
                          style="margin:0px;font-family:Verdana;color:rgb(4,46,238)"><span
style="text-decoration:underline;font-size:10px"><a
                              moz-do-not-send="true"
                              href="http://www.tgac.ac.uk/"
                              target="_blank">http://www.tgac.ac.uk/</a></span></p>
                        <p
                          style="margin:0px;font-family:Cambria;min-height:19px"><span
                            style="font-size:10px"><br>
                          </span></p>
                        <p style="margin:0px;font-family:Verdana"><span
                            style="font-size:10px">p: <a
                              moz-do-not-send="true"
                              href="tel:%2B44%201603%20450378"
                              value="+441603450378" target="_blank">
                              +44 1603 450378</a></span></p>
                        <p
                          style="margin:0px;font-family:Verdana;color:rgb(13,102,213)"><span
                            style="color:rgb(0,0,0);font-size:10px">e: <a
                              moz-do-not-send="true"
                              href="mailto:timothy.stitt@tgac.ac.uk"
                              target="_blank">timothy.stitt@tgac.ac.uk</a></span></p>
                      </div>
                    </div>
                    <br>
                    _______________________________________________<br>
                    Swift-user mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:Swift-user@ci.uchicago.edu">Swift-user@ci.uchicago.edu</a><br>
                    <a moz-do-not-send="true"
                      href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user"
                      rel="noreferrer" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user</a><br>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
          </div>
        </blockquote>
      </span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Swift-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Swift-user@ci.uchicago.edu">Swift-user@ci.uchicago.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Justin M Wozniak</pre>
  </body>
</html>