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.
要格式化我的数字,我使用以下语法:
move.ToString("+0.#;-0.#;0.0")
它工作正常,但如果我有一个整数,它不会显示有意义的 0,例如:3 而不是 3.0。
是的:
move.ToString("+0.0;-0.0;0.0")