Sample Output:
The program compiles and runs but no matter what kind of printf format I do (double, float, int) I always get 0.0000..., -0.000..., or some really large number.
I don't know what could be wrong. Can anybody please help me with this? It is driving me insane.
Hi Folks!
Can you help me with this find -printf command. I seem to be unable to execute the printf-command from my shell script. I'm confused: :confused:
My shell script snippet looks like this:
#!/bin/sh
..
COMMAND="find ./* -printf '%p %m %s %u %g \n'"
echo "Command: ${COMMAND}"... (1 Reply)
Hi
I'm using awk to manipulate the data in the 6th field of the file xxx_yyy.hrv.
The sample data that is available in this field is given below
220731.7100000000000000
When i tried using this command
cat xxx_yyy.hrv | awk '{printf("%23.16f\n",$6*-1)}'
I get the output as... (4 Replies)
Hi ,
I wonder if in java I can pipe the below output of the printf into a variable:
System.out.printf(" This is a test %s\n", myVariable);
I want to keep the output of the printf command to create my history array.
Thanks. (2 Replies)
printf "%X\n" "A"
41
printf "%X\n" "2"
2
Expected 32 (not 2).
Is there a "printf" which will output the hexadecimal value of a numeric character? (9 Replies)
Hi,
i have a script, which is incomplete, am on my way developing it.
Input
1,12,2012,IF_TB001
2,12,2012,3K3
3,Z56,00000,25,229,K900,00, ,3G3, ,USD, ,0000000000,000, , , , 550000000
3,Z56,00000,53,411,W225,00,000, , ,USD,OM170,0000000000,000, , , , -550000000
4,Z56,COUNT, 4,SUM LOC,... (19 Replies)
Hi All;
I try to create a excel like table with headers and some fields containing values, other long and complex mathematic formulas.
I have some header like : Name Formula Value True/False
Under name column, they are some formula names, formula column some long mathematic formulas... (9 Replies)
Hello script guru's
as i write more and more code i always block at managing output... either writing to standard out, writing to files via std out (log, temp file, etc). Don't get me wrong 99% of the time it DOES the job but maybe there is more efficient.
I'm writing a small script to... (2 Replies)
So I created two shell variables: COLUMN1_HEADING, COLUMN2_HEADING.
They have values:
COLUMN1_HEADING="John"
COLUMN2_HEADING="123456789"
How would I use printf to get it to print an output like this: $COLUMN1_HEADING\t$COLUMN2_HEADING\nJohn\t123456789\n
Thanks! (3 Replies)
Discussion started by: steezuschrist96
3 Replies
LEARN ABOUT DEBIAN
sbcylinder
SbCylinder(3) Coin SbCylinder(3)NAME
SbCylinder -
The SbCylinder class is a representation of a cylinder.
This class is used within other classes in Coin. It contains data to represent a cylinder by an axis and a radius. The cylinder has no
length/height value, which means it is treated as of infinite length.
SYNOPSIS
#include <Inventor/SbLinear.h>
Public Member Functions
SbCylinder (void)
SbCylinder (const SbLine &a, const float r)
void setValue (const SbLine &a, const float r)
void setAxis (const SbLine &a)
void setRadius (const float r)
const SbLine & getAxis (void) const
float getRadius (void) const
SbBool intersect (const SbLine &l, SbVec3f &intersection) const
SbBool intersect (const SbLine &l, SbVec3f &enter, SbVec3f &exit) const
void print (FILE *file) const
Detailed Description
The SbCylinder class is a representation of a cylinder.
This class is used within other classes in Coin. It contains data to represent a cylinder by an axis and a radius. The cylinder has no
length/height value, which means it is treated as of infinite length.
See also:
SbLine, SbSphere
Constructor & Destructor Documentation
SbCylinder::SbCylinder (void)
The default constructor will make a cylinder of radius 1, center axis going through origo in the parallel direction of the positive y-axis.
SbCylinder::SbCylinder (const SbLine &a, const floatr)
Construct and initialize an SbCylinder instance with the given axis a and radius r.
Member Function Documentation
void SbCylinder::setValue (const SbLine &a, const floatr)
Set the axis and radius of the cylinder.
See also:
getAxis(), getRadius().
void SbCylinder::setAxis (const SbLine &a)
Set the center axis of the cylinder.
See also:
setRadius(), getAxis().
void SbCylinder::setRadius (const floatr)
Set the radius of the cylinder.
See also:
setAxis(), getRadius().
const SbLine & SbCylinder::getAxis (void) const
Return the line which is the center axis of the cylinder.
See also:
setAxis(), getRadius().
float SbCylinder::getRadius (void) const
Return radius of cylinder.
See also:
setRadius(), getAxis().
SbBool SbCylinder::intersect (const SbLine &l, SbVec3f &intersection) const
Finds the intersection point of the ray l on the cylinder where the ray enters, and return this point in intersection.
If the ray does not intersect the cylinder, FALSE is returned, otherwise we will return TRUE.
SbBool SbCylinder::intersect (const SbLine &l, SbVec3f &enter, SbVec3f &exit) const
Find the intersection points of the ray l on the cylinder and return these in enter and exit. If the ray just 'grazes' the cylinder, the
enter and exit points have equal values.
If the ray does not intersect the cylinder, FALSE is returned, otherwise we will return TRUE.
void SbCylinder::print (FILE *fp) const
Dump the state of this object to the file stream. Only works in debug version of library, method does nothing in an optimized compile.
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SbCylinder(3)