<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>表达式求值 - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%B1%82%E5%80%BC/</link><description>表达式求值 - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Sun, 12 Jan 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%B1%82%E5%80%BC/" rel="self" type="application/rss+xml"/><item><title>计算器</title><link>https://rd163.visword.com/posts/calculator/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/calculator/</guid><description>&lt;p>计算器（calculator）几乎是每台操作系统都会预装的工具。看似简单，背后却涉及一套成熟的表达式求值算法，而具体形态又从命令行、桌面到 Web 各有取舍。日常开发中，能熟练用一行命令算清一个表达式、做一次单位换算或进制转换，往往比反复切到鼠标点击 GUI 更高效。本文先聊一聊命令行里最常驻的 &lt;code>bc&lt;/code>，再扩展到全平台的开源桌面/Web 计算器，以及支撑它们的表达式求值原理。&lt;/p></description></item></channel></rss>