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.
我想在 RML 报告中打印整数,如 0、1、2,但我在 RML 报告中显示 0.00、1.00 等数字。我返回并尝试使用类型转换将其转换为整数,但在 RML 报告中返回相同的输出。请建议我如何在 RML 报告中打印整数或删除小数部分。
试着把[[ int(your_integer) or '0' ]].
[[ int(your_integer) or '0' ]]
问候。