<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>weeweee (Justin)</title>
    <link>https://ruby-china.org/weeweee</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Float 相加问题</title>
      <description>&lt;p&gt;在 1.8.7 版本上，为什么这些语句里，有几条在执行的时候会出现 false？而且 divmod 的结果会有余数？觉得好费解呀&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;1.55.divmod(1.525+0.025)
=&amp;gt; [1, 2.22044604925031e-16]
1.54.divmod(1.515+0.025)
=&amp;gt; [1, 2.22044604925031e-16]
1.499+0.001==1.5
=&amp;gt; true
1.499+0.011==1.51
=&amp;gt; true
1.499+0.021==1.52
=&amp;gt; true
1.499+0.031==1.53
=&amp;gt; true
1.499+0.041==1.54
=&amp;gt; true
1.499+0.051==1.55
=&amp;gt; true
1.5+0.05==1.55
=&amp;gt; true
1.52+0.03==1.55
=&amp;gt; true
1.525+0.025==1.55
=&amp;gt; false
1.529+0.021==1.55
=&amp;gt; false
1.530+0.020==1.55
=&amp;gt; true&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;</description>
      <author>weeweee</author>
      <pubDate>Wed, 15 May 2013 22:46:24 +0800</pubDate>
      <link>https://ruby-china.org/topics/11012</link>
      <guid>https://ruby-china.org/topics/11012</guid>
    </item>
    <item>
      <title>button_to 与 link_to 产生不一样的效果</title>
      <description>&lt;p&gt;rails3.2.6
    用&amp;lt;%= button_to "Checkout", new_order_path %&amp;gt;时，就返回一个‘No route matches [POST] "/orders/new"’的 route 错误，也用过&amp;lt;%= button_to "Checkout", new_order_path, :method =&amp;gt; :get %&amp;gt;还是同样的错。
    但是使用&amp;lt;%= link_to "Checkout", new_order_path %&amp;gt;时就完全没有问题了。这是咋回事嘞？谁能给解释一下。
以前也用过 button_to 这样写过，就没出过错……莫非是因为我升了 rails 的版本导致的？&lt;/p&gt;</description>
      <author>weeweee</author>
      <pubDate>Sat, 04 Aug 2012 23:03:02 +0800</pubDate>
      <link>https://ruby-china.org/topics/4736</link>
      <guid>https://ruby-china.org/topics/4736</guid>
    </item>
    <item>
      <title>oracle 数据库创建用户指定表空间</title>
      <description>&lt;p&gt;用的是 oracle 数据库。
使用 rake db:create 创建数据库用户，总是指定到默认表空间上，怎么才能让用户创建在我指定的表空间？  &lt;/p&gt;</description>
      <author>weeweee</author>
      <pubDate>Fri, 15 Jun 2012 23:23:15 +0800</pubDate>
      <link>https://ruby-china.org/topics/3836</link>
      <guid>https://ruby-china.org/topics/3836</guid>
    </item>
  </channel>
</rss>
