I am trying to compare 2 float values using if
the foll code does not work
a=1.4
b=1.6
if test $a -gt $b
then
echo "$a is max"
else
echo "$b is max"
fi
does -gt work for floating point numbers, if not how do go about for my requirement? can i use bc ? pls help
thanks in advance... (2 Replies)
Hi
I know its a dumb question but can any one please explain me the difference of executing a shell script in the following 2 ways.
. script.sh
sh script.sh
I have a problem if I execute the following code as sh script.sh
DB_CNT_ALW=0.20
SCT_VAR=0.05
if ; then
echo "== Difference... (3 Replies)
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)
Today I spent longer than I'd like to admit figuring out how to write a Bourne shell IF statement that tests a FLOAT value before executing a block of statements. Here's the solution I found, which invokes bc. Hope this will come in handy for someone:
value =
testval =
if
then
body... (5 Replies)
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)
I have written a phyton script that accepts command line arguments. I am setting defaults for some of them if the user does not specify them. However I want to print the user values and the defaulted values seperately. However, once I set the default values, then I cannot use
if... (0 Replies)
Dear friends,
I want to print variables' values in certain format where space between two values of variables is "a tab"
I tried where I provided "tab" between two varibales.
But when it print values on screen its giving me output without spaces in two values.
Request you to help me in... (7 Replies)
I have a class
and want to print values in MOD using
L = new Layer* ;
How can I print the values in MOD using this object L???
class Layer
{
public :
Model* MODP;
Model* MODS; (1 Reply)
Hi All
I had requirement where I need to re-order columns in a file by using a control file.
here is the ctrl file
c1
c2
c3
source file
c3 | c1 | c2
a | b| c
I should create output file based on the ctrl file columns
o/p should look like this
c1 | c2 | c3
b| c|a
I wrote some... (9 Replies)
Hello!
I'm making an English to Morse Code translator and I was able to mostly get it all working by looking through older posts here; however, I have one small problem.
When I run it it's just printing spaces for where the characters should be. It runs the right amount of times, and if I try... (3 Replies)
Discussion started by: arcoleman10
3 Replies
LEARN ABOUT LINUX
wxgraphicspath
wxGraphicsPath(3erl) Erlang Module Definition wxGraphicsPath(3erl)NAME
wxGraphicsPath - See external documentation: wxGraphicsPath.
DESCRIPTION
See external documentation: wxGraphicsPath .
This class is derived (and can use functions) from:
wxGraphicsObject
DATA TYPES
wxGraphicsPath() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
moveToPoint(This::wxGraphicsPath(), P::{X::float(), Y::float()}) -> ok
See external documentation .
moveToPoint(This::wxGraphicsPath(), X::float(), Y::float()) -> ok
See external documentation .
addArc(This::wxGraphicsPath(), C::{X::float(), Y::float()}, R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok
See external documentation .
addArc(This::wxGraphicsPath(), X::float(), Y::float(), R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok
See external documentation .
addArcToPoint(This::wxGraphicsPath(), X1::float(), Y1::float(), X2::float(), Y2::float(), R::float()) -> ok
See external documentation .
addCircle(This::wxGraphicsPath(), X::float(), Y::float(), R::float()) -> ok
See external documentation .
addCurveToPoint(This::wxGraphicsPath(), C1::{X::float(), Y::float()}, C2::{X::float(), Y::float()}, E::{X::float(), Y::float()}) -> ok
See external documentation .
addCurveToPoint(This::wxGraphicsPath(), Cx1::float(), Cy1::float(), Cx2::float(), Cy2::float(), X::float(), Y::float()) -> ok
See external documentation .
addEllipse(This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok
See external documentation .
addLineToPoint(This::wxGraphicsPath(), P::{X::float(), Y::float()}) -> ok
See external documentation .
addLineToPoint(This::wxGraphicsPath(), X::float(), Y::float()) -> ok
See external documentation .
addPath(This::wxGraphicsPath(), Path::wxGraphicsPath()) -> ok
See external documentation .
addQuadCurveToPoint(This::wxGraphicsPath(), Cx::float(), Cy::float(), X::float(), Y::float()) -> ok
See external documentation .
addRectangle(This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok
See external documentation .
addRoundedRectangle(This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float(), Radius::float()) -> ok
See external documentation .
closeSubpath(This::wxGraphicsPath()) -> ok
See external documentation .
contains(This::wxGraphicsPath(), C::{X::float(), Y::float()}) -> bool()
Equivalent to contains(This, C, []) .
contains(This::wxGraphicsPath(), X::float() | term(), X::float() | term()) -> bool()
See external documentation .
Alternatives:
contains(This::wxGraphicsPath(), X::float(), Y::float()) -> contains(This,X,Y, [])
contains(This::wxGraphicsPath(), C::{X::float(),Y::float()}, [Option]) -> bool()
Option = {fillStyle, integer()}
contains(This::wxGraphicsPath(), X::float(), Y::float(), Options::[Option]) -> bool()
Types Option = {fillStyle, integer()}
See external documentation .
getBox(This::wxGraphicsPath()) -> {X::float(), Y::float(), W::float(), H::float()}
See external documentation .
getCurrentPoint(This::wxGraphicsPath()) -> {X::float(), Y::float()}
See external documentation .
transform(This::wxGraphicsPath(), Matrix::wxGraphicsMatrix() (see module wxGraphicsMatrix)) -> ok
See external documentation .
AUTHORS
<>
wxErlang 0.98.9 wxGraphicsPath(3erl)