hi all, i have the following problem using awk in a script
i want to read the values from a column with real numbers and calculate the mean.the problem is that when i use a statement such as this
num = $4
i cant find a way to convert the variable from string to floating point to perform... (7 Replies)
Hi all!
Hi all!
I am working with a problem to find the smallest floating point number that can be represented.
I am going in a loop ,stating with an initial value of 1.0 and then diving it by 10 each time thru the loop.
So the first time I am getting o.1 which I wanted.But from the next... (4 Replies)
Hi,
I' using bash and I would like to use "bc" to compute the ratio of of two numbers and assign the ratio to a variable.
The numbers are in a file, e.g.
196.304492
615.348986
Any idea how to do it?
N.B. I cannot change the file to have 196.304492 / 615.348986 as the file is produced by... (14 Replies)
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)
Hello folks
I Hope everyone is fine. I am calculating number of bytes calculation from apache web log.
awk '{ sum += $10 } END { print sum }' /var/httpd/log/mydomain.log
7.45557e+09
it show above number, what should i do it sow number like 7455, i mean if after decimal point above 5 it... (5 Replies)
Anyone help me i cant found the error of floating point
if needed, i added the code complete
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
typedef struct
{
int hh;
int mm;
int ss;
char nom;
int punt;
}cancion;
typedef struct... (9 Replies)
Hello Guys,
I have a floating point number 1.14475E+15 I want to convert this number in to full number (Integer or Big integer). I tried couple of functions it did not work. When I use INT=${FLOAT/.*} I am getting value as 1. I don't want a truncated value
#!/bin/bash
#... (9 Replies)
Hello,
I have often found bash to be difficult when it comes to floating point numbers. I have data with rows of tab delimited floating point numbers. I need to find the smallest number in each row that is not 0.0. Numbers can be negative and they do not come in any particular order for a given... (9 Replies)
Discussion started by: LMHmedchem
9 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)