格式小数 2 位 - 没有尾随零 [英] Format Decimal 2 Places - no trailing zeroes
本文介绍了格式小数 2 位 - 没有尾随零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
格式:#,# 格式化我的数字,但它会将我的小数四舍五入.我需要保留我的小数.有格式吗?
The format: #,# formats my number but it rounds my decimals up. I need to keep my decimals. Is there a format for that?
谢谢.
推荐答案
#,#.###
根据需要投放尽可能多的 #
.
要总是显示小数位,请改用 0
s.
Ad as many #
s as needed.
To always show decimal places, use 0
s instead.
这篇关于格式小数 2 位 - 没有尾随零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文