2 votes

Divisions in Bash with decimals

I'm trying to do a split in bash with this code:

However, it gives me this error:

Why? How do I correct it?

1voto

fedorqui Points 7806

To make a division with `` , the format is the one you use:

In your case you are using the variables wrongly.

0voto

alexito2020 Points 21

I found how to do it:

result=``

0voto

Cruz E Points 1

Editing in your code:

HolaDevs.com

HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by:

X