lauriys
lauriys

Reputation: 4792

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 numbers.

Is there anything I can do?

Upvotes: 3

Views: 2012

Answers (2)

ghostdog74
ghostdog74

Reputation: 342819

busybox should have awk.

awk 'BEGIN{print 0.5*2}' 

Upvotes: 4

Carl Norum
Carl Norum

Reputation: 225112

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

Upvotes: 2

Related Questions