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.
听说你只需要在运算符前面加一个F,然后在最后加一个(.),就可以计算出浮点数,然后显示出来。但它给了我这个答案:
2 3 F/ . :8: Floating-point stack underflow 2 3 >>>F/<<< . Backtrace:
我怎样才能得到0.66666667 ok?
0.66666667 ok
你听错了。大概谁告诉你这意味着句点应该在操作数的末尾,但这会使它们成为双精度值(与双浮点数无关)。您需要e在末尾加上一个2并使3它们浮动,写入f/以划分它们,并写入f.以打印:
e
2
3
f/
f.
in: 2e 3e f/ f. out: 0.666666666666667 ok