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.
我真的是 MIPS 程序集的新手,我想知道我可以做类似的事情:
不只是三个字符的数字,任意长度的 X 和 Y
请帮助如果您知道算法或我在哪里可以找到代码或算法
(对不起,我认为图像可能会更好更快地描述)
谢谢 ...
考虑以下伪代码:
int x = input int y = input while y > 1: y = y / 10 return x + y
当然,您必须了解正常的浮点精度关键点,即这最多只能让您尽可能接近 XXX.YYY 给定的表示形式。