Results 1 to 2 of 2
Hi
i want to assign a float values in bash shell programming.
in c
i do like that
float s=1.5;
int w=5;
printf("values of s+w="s+w);
some thing like that i ...
- 07-15-2008 #1Just Joined!
- Join Date
- Jul 2008
- Posts
- 1
hi any one solve my problem
Hi
i want to assign a float values in bash shell programming.
in c
i do like that
float s=1.5;
int w=5;
printf("values of s+w="s+w);
some thing like that i want to do in bash shell programming
- 07-15-2008 #2Linux User
- Join Date
- Jun 2007
- Posts
- 318
Code:#!/bin/bash s=1.5 w=5 echo "values of s+w=`echo "$s +$w" | bc -l`"


Reply With Quote