bash arithmetic question
$(()) doesn't seem to work with real numbers such as 1.2. HELP!
|
Code:
math_result=$(echo "1.234 * 0.987" | bc -l) |
Quote:
|
Hi,
Welcome to LQ! Instead of throwing out your homework for others to do, why not abide by the LQ Rules; Quote:
You have been creating a lot of threads for homework questions to the forum! You would learn more and understand the subject better if YOU do the work. :hattip: |
Quote:
"This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!" That is what's written in the forum I've posted my questions. I have a lot of questions about linux since I'm new to it. Also I haven't told anyone to do my work. All I have done is ask question about something I'm unclear about. If I'm not posting in the right forum please do tell me where to post it. As far as I'm aware I am abiding by the rules. I might be missing something so please clearly state what I've done wrong. Thanks |
All times are GMT -5. The time now is 02:52 PM. |