Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对脚本专家有以下问题:如何将数字(即 12.34567)乘以 100,然后使用 sed 将其四舍五入到小数点后两位?
提前致谢!艾瑞克
这是用 sed 编写的RPN 计算器的源代码。那应该让你开始。