The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Using Floating Numbers in String
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Using Floating Numbers in String
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
06-29-2009
tintin72
Registered User
Join Date: Mar 2009
Posts: 23
Quote:
Originally Posted by
jayan_jay
Try this and change according to ur variables.
echo "scale=4;$b+$c" | bc
I'm not sure I understand you. Doing
Code:
echo "$zposition" |bc
returns the correct output. But doing
Code:
echo "sl$[n]_z$[zposition].txt"
does not. This is my problem.
tintin72
View Public Profile
Find all posts by tintin72
Find tintin72's past nominations received
Find tintin72's present nominations given