<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[TheRedFox的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/TheRedFox</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; TheRedFox]]></copyright><item><title><![CDATA[Delphi 中关于Double类型精度以及使用Ceil和Trunc取整引发的问题]]></title><link>https://blog.youkuaiyun.com/TheRedFox/article/details/105844065</link><guid>https://blog.youkuaiyun.com/TheRedFox/article/details/105844065</guid><author>TheRedFox</author><pubDate>Wed, 29 Apr 2020 17:42:31 +0800</pubDate><description><![CDATA[在最近的工作中，遇到一个BUG，本应是1200的一个变量，结果却变成了1199，找了一会，发现是由于Double的存储引起的。

问题简化如下：


var
  d: Double;
begin
  try
    d := 1.2;
    Writeln(Trunc(d * 1000));
    Readln;
  except
    on E: Exception do
      Wr...]]></description><category></category></item><item><title><![CDATA[TAdvStringGrid-动态修改单元格Editor和字体颜色]]></title><link>https://blog.youkuaiyun.com/TheRedFox/article/details/102680516</link><guid>https://blog.youkuaiyun.com/TheRedFox/article/details/102680516</guid><author>TheRedFox</author><pubDate>Tue, 22 Oct 2019 13:17:11 +0800</pubDate><description><![CDATA[需求：将单元格从文本变为下拉列表


procedure MyForm.MyEditExit(Sender: TObject);
 var
 I, J: Integer;
 CellProperties: TCellProperties;
begin
 inherited;
 for I := 1 to AdvStringGrid.RowCount - 1 do
 begin
 ...]]></description><category></category></item></channel></rss>