Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
multiply decimals
Name: Robert Pearson Date: August 9, 2003 at 17:32:14 Pacific OS: Mandrake 9.1 CPU/Ram: p3 500 / 128mb
Comment:
This has been driving me nuts for a few days now. I can't figure out how to multiply decimals in a korn script.
What I have that works... time=$(($1*2)) echo $time
What I have that doesn't work... time=$(($1*1.7)) echo $time
Summary: I am trying to figure out the cpu speed for an AIX box. The CPU speed is given in HEX. How can I convert HEX to a decimal number? Is there a function? ...
Summary: how can I do computations on values that are stored within a file?? For example if "file1" contains the number 5 and "file2" contains the number 2, how do I write a script that multiplies these two v...