<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>code.club - SWIFT</title>
    <link>http://www.code.club/forum.php?mod=forumdisplay&amp;fid=54</link>
    <description>Latest 20 threads of SWIFT</description>
    <copyright>Copyright(C) code.club</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 08 Nov 2026 17:10:08 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.code.club/static/image/common/logo_88_31.gif</url>
      <title>code.club</title>
      <link>http://www.code.club/</link>
    </image>
    <item>
      <title>用 swift 4.0 新寫的簡易計算機</title>
      <link>http://www.code.club/forum.php?mod=viewthread&amp;tid=520</link>
      <description><![CDATA[這次的特點有幾個：
一，有autolayout，所以會自動配合裝置大小不同來顯示，直放橫放都可以。
二，多了 back 功能，輸入之後可以逐一刪除掉。
三，1.005 - 1.004 會得到預想中的 0.001 ，而不是 0.00099999....。

致命的 bug 尚未發現，但功能上不盡如人意，和原本想要 ...]]></description>
      <category>SWIFT</category>
      <author>swift</author>
      <pubDate>Tue, 14 Aug 2018 09:21:41 +0000</pubDate>
    </item>
    <item>
      <title>有關浮點數相減時的問題</title>
      <link>http://www.code.club/forum.php?mod=viewthread&amp;tid=518</link>
      <description><![CDATA[在寫計算機程式時，有一個困擾就是浮點數的減法會出現誤差。例如：
123.005 - 123.004 會得到 0.0009999...... 而非預期中的 0.001 。
因此寫了一個函式來解決這問題。
基本上是先求出二個數小數點後的位數，以最多的為準，乘上十的次方，再乘回二數將它們都變成整數， ...]]></description>
      <category>SWIFT</category>
      <author>swift</author>
      <pubDate>Sat, 21 Apr 2018 10:39:35 +0000</pubDate>
    </item>
    <item>
      <title>ＴＥＸＴ格自理填數字計算</title>
      <link>http://www.code.club/forum.php?mod=viewthread&amp;tid=414</link>
      <description><![CDATA[請問ＴＥＸＴ的格子裡如何填數字計算 再按ＢＵＴＴＯＮ時可以作動 出結果
然後結果顯示在某個ＴＥＸＴ格子裡]]></description>
      <category>SWIFT</category>
      <author>hodbboy</author>
      <pubDate>Sun, 29 Oct 2017 14:33:56 +0000</pubDate>
    </item>
  </channel>
</rss>