10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm struggling :wall: to make a an if statement on two variables in scientific format.
I know that it can be done with bc if the variable are not in scientific format.
But what to do in this case???
Thank you, (3 Replies)
Discussion started by: f_o_555
2. Shell Programming and Scripting
I need to add leading zeros in a floating point numbers.
The length of the number should be 13 including decimal.
The input number is changing so number of leading zeros is not fix.
22345.500 ... (4 Replies)
Discussion started by: reeta_shri
Anyone help me i cant found the error of floating point
if needed, i added the code complete
typedef struct... (9 Replies)
Discussion started by: Slasho
4. UNIX for Dummies Questions & Answers
I actually intent to check the integer or floating point number input by user i.e. 23, 100, 55.25, 12.50 ..etc. However, when someone input strings or alpha character, my program has to show invalid input.!! Is there any Unix shell script syntax can help me to check ?
Thanking you (2 Replies)
Discussion started by: krishnampkkm
5. Shell Programming and Scripting
is it not possible to simply di aritmetic without using bc or awk
i have tried folllowing operatrions but they support only integer types plz suggest me code for floating using values stored in the variables.the ans i get is integer and if i input floating values i get error numeric constant... (6 Replies)
Discussion started by: sumit the cool
6. Shell Programming and Scripting
> echo "1"
> echo "2"
How can i compare floating point numbers inside statement? (15 Replies)
Discussion started by: proactiveaditya
7. Shell Programming and Scripting
i have some variables say:
I wish to round off these values to :
x = 2 (after rounding off)
y = 4 (after rounding off)
I am stuck.
Please help. (7 Replies)
Discussion started by: damansingh
8. Shell Programming and Scripting
I am trying to write a script to extract multiple sets of data from a chemistry output file. The problem section is in the following format...
Geometry "geometry" -> "geometry"
1 Pd 46.0000 -0.19290971 0.00535260 0.02297606
2 P ... (7 Replies)
Discussion started by: smadonald1
9. Shell Programming and Scripting
I have a two files
jjjjj 10.345 6.673
ppp 9.000 5.883
mmm 80 10
jjjjj 10.305 6.873
ppp 9.000 5.883
I am reading file 1 line by line , and look for the string jjjj and then read the line in file 2 with jjjj
I want to get the... (5 Replies)
Discussion started by: jojan
10. Shell Programming and Scripting
Can someone help me how to use or assign a floating point value in a variable in a unix script. I dont know how to use it.
for example, I am to assign a variable VAR1 a value of 2.34 and evaluate if a certain vaue is greater or less than to it.
if var1 > 2.13 will do... (7 Replies)
Discussion started by: darry