hello,
on a system having no bc, perl, awk, and to which I have no administrator rights (only common user account), with restricted shell (bash), sed and expr available, I need to be able divide numbers to 1 decimal place:
> echo $((10/10))
1
> echo $((5/10))
0
I'd like to get 1.0, 0.1, etc (so leading zero for <1)
also builtin let gives 0
> let "m=1/4";echo $m
0
thanks in advance for a hint!
on a system having no bc, perl, awk, and to which I have no administrator rights (only common user account), with restricted shell (bash), sed and expr available, I need to be able divide numbers to 1 decimal place:
> echo $((10/10))
1
> echo $((5/10))
0
I'd like to get 1.0, 0.1, etc (so leading zero for <1)
also builtin let gives 0
> let "m=1/4";echo $m
0
thanks in advance for a hint!