开发者

How to use float numbers on BusyBox?

I have a little computer with BusyBox, and compiling anything on it is a nightmare.

I want to do something simple like "0,5*2", but can't without additional software.

I tried "expr", "let", and just can't do any operation with float numb开发者_Python百科ers.

Is there anything I can do?


busybox should have awk.

awk 'BEGIN{print 0.5*2}' 


busybox has dc built in. Here's a link to all of the documentation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜