10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am having an abc.txt , which contains some digits
Eg:abc.txt
14.5
56.6
95.5
I want write shellscript in suchway that if any digit is greter than 90 then it shuld display " digit is greater than 90"
Please help me to do so .I have tried below code , for... (5 Replies)
Discussion started by: pspriyanka
5 Replies
2. Red Hat
:confused:We have two servers one active and one stand by
as follows Active 202.61.9.9
Stand by 202.61.9.10
Float IP 202.61.9.8
What is use of this float IP?
How it is configured? (1 Reply)
Discussion started by: manalisharmabe
1 Replies
3. Shell Programming and Scripting
I have a file with 2 columns . One of the line looks like the following.
Is it possible to convert every float no in column 2 to integer.
input
NM_032881 6.03787973608527e-05
output
0.0000603787..... (2 Replies)
Discussion started by: quincyjones
2 Replies
4. UNIX for Advanced & Expert Users
Hi Guys,
here is a part of my source code. This part is reponsible to get the minimun of a few values:
..........
MAX=0.00
for a in `cat $OFILE`
do
if
then
... (2 Replies)
Discussion started by: Paat
2 Replies
5. Programming
i am adding two floating point numbers and i want to store in a character pointer...
float f1 ;
float f2 ;
char *c = NULL;
printf("Enter 2 floating numbers\n");
scanf("%f %f",&f1,&f2);
f1 = f1+f2;
sprintf(c, "%f", f1 );
when i execute this, i am... (3 Replies)
Discussion started by: pgmfourms
3 Replies
6. Programming
Hi, i have a simple control like this:
if(sum>1.0)...
If i try to print sum i get 1.000000 but the check returns true. I think it depends on float precision. How can i modify the check?
thanks (1 Reply)
Discussion started by: littleboyblu
1 Replies
7. Shell Programming and Scripting
how to input float data type in bash shell programming in linux?
I am new to it so unaware to use the commands plz help me out.
thank you. (6 Replies)
Discussion started by: purva
6 Replies
8. Shell Programming and Scripting
HI!
What is the notation which correspond to C's
doubleandfloatin Perl??
Please tell me.
Thanks.
Well what I want to do is, for example, calculatingsqrt(2)in two way: float and double. (5 Replies)
Discussion started by: Euler04
5 Replies
9. Programming
Good morning,
I'm testing the use of ceilf:
/*Filename: str.c*/
#include <stdio.h>
#include <math.h>
int main (void)
{
float ceilf(float x);
int dev=3, result=0;
float tmp = 3.444f;
printf("Result: %f\n",ceilf(tmp));
return 0;
} (1 Reply)
Discussion started by: jonas.gabriel
1 Replies
10. UNIX for Dummies Questions & Answers
As expr is used for integer calculations, which command is used for float calculations. (1 Reply)
Discussion started by: sharmavr
1 Replies