Search Results

Search: Posts Made By: harte
2,985
Posted By sanjaypraj
This may help ema=`echo "(${currentprice} *...
This may help

ema=`echo "(${currentprice} * 0.153846154) + (${previousema} * (1 - 0.153846154))" | bc`
2,985
Posted By clx
You are mixing more than one command. ...
You are mixing more than one command.

ema=$(echo "($currentprice*0.153846154)+($previousema*(1-0.153846154))" | bc)

if [ "$ema" -eq 1 ]; then
echo do something
fi
3,734
Posted By ygemici
if --> yesterdaysclose bigger(>) or equal(=) to...
if --> yesterdaysclose bigger(>) or equal(=) to close val..
$(echo "if (${yesterdaysclose} < ${close}) 1" | bc) --> equals to NULL (because conditon is false )
and [ test command does not compare...
3,939
Posted By Scrutinizer
Hi pravin, The '-flag is not in the POSIX...
Hi pravin,

The '-flag is not in the POSIX specification of the printf utility itself:printf utility: extended description...
Showing results 1 to 4 of 4

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