Search Results

Search: Posts Made By: rleebife
15,592
Posted By rleebife
Converting exponential values
Hi.
Is there a way to convert a value outputted as(for example):

4.14486e+06 into a regular format: 4144860

I suppose in plain english i want to move the decimal point 6 places to the right....
51,532
Posted By rleebife
excellent:) thanks JADUKS - you are genius
excellent:)
thanks JADUKS - you are genius
51,532
Posted By rleebife
not on my machine :( is there some other way...
not on my machine :(

is there some other way i can do this. i realise that it is really simple so there must be another easy way
51,532
Posted By rleebife
This gives me an error: line 34: bc: command...
This gives me an error:
line 34: bc: command not found
51,532
Posted By rleebife
Thanks. How could i do something like this: ...
Thanks. How could i do something like this:

Number=$(echo | awk '{ print $TEST*10.69}')

where $TEST is some integer?
51,532
Posted By rleebife
Multiplying Floats/Decimals
Is there a way that i can get something like this to work:

Number=`expr 80 \* 10.69`

i.e. To multiply an integer by a decimal or a decimal by a decimal etc...?
thanks
3,480
Posted By rleebife
Thanks for your help peeps.. got that working:D
Thanks for your help peeps.. got that working:D
3,480
Posted By rleebife
cut sed grep or other?
Hi
Is there a way to cut the last two characters off a word or number given that this word or number can be of varying length?

I have tried something like

TEST=`echo $OLD | cut -c 1-5`
...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 03:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy