Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Hi Glenn, I am still getting the illegal floating point error" I realize that the number "5" that I adding or summing is not 5, rather is 5.2 so the formula is going to be : set varx = echo " 5.2 + $xbiz" | bc -l Do you have another idea how to solve this?? Commented Apr 22, 2014 at 15:54
  • What is the content of the xbiz variable? Commented Apr 22, 2014 at 16:26
  • Hi Glenn: the content of the xbiz variable is coming from a input text boxes, generally are numbers like 2.4, 4.15,etc. my problems is when the text box is empty or "0" there I get the error illegal float point value!! Commented Apr 22, 2014 at 17:59
  • Well, in those cases, you have to change the value. Commented Apr 22, 2014 at 18:00
  • How do I change the values Gelnn? I am so new in shell script, how do I get rid of the illegal float point error, thanks for your valuable help! Commented Apr 22, 2014 at 18:02