COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Round value calculated by equation

• Email
• Follow

```  Is there a way to have the value calculated by an equation
automatically round to the nearst whole inch? We have some equations
that we use to locate some components in an assembly but the equation
never results in a nice whole number and the location of these
components is not so critical that we want to dimension them to the
16th or 32nd. If we just set the dimension in the drawing to round the
dimensions will look ok but the dimension string will not add up to
equal the actual overall dimension.

Thanks,

Sam

```
 0
Reply neverchecked40 (75) 11/23/2005 1:46:39 PM

See related articles to this posting

```Look in the help under "Equatins --> Functions".  There is an integer
function, "INT".  INT gives the lowest whole integer of a decimal
number,
i.e. INT(10.666 ) = 10.
For rounding to nearest (up or down), you can add 0.5 to the final,
i.e. INT(10.222 + 0.5) = 10,
INT(10.666 + 0.5) = 11

```
 0

1 Replies
1049 Views

Similar Articles

12/18/2013 10:43:33 PM
page loaded in 33838 ms. (0)

Similar Artilces:

equations round evaluated values to 6 decimal places
Hi, I have computed angles in equations and linked the results to multple feature drafts - due to the nature of the the draft it needs to run out to system tolerance or in sw's case 8 decimal places. However, the returned result from the equation is rounded to 6 decimal places regardless of the unit settings (for degress or distance (both are set to 8 in this part)). Hence for any work requiring accuracy past 6 decimal places equations cannot be used. Unless I've missed an option somewhere? Zander Can you use linked values instead of equations? Zander wrote: > Hi, > >...

How to calculate the abscissa values for the given vertical values
Hi, all. I want to calculate the abscissa values for the given vertical values. For example, x = findgen(1000)/1000*4*pi y = cos(x) I want to get the abscissa values for y=0. For this example, the results shoule be [!pi/2, 3*!pi/2, 5*!pi/2, 7*! pi/2]. But how can I get it by IDL codes? Best wishes, jdu On Mon, 5 Oct 2009 01:56:20 -0700 (PDT), "duxiyu@gmail.com" <duxiyu@gmail.com> wrote: >Hi, all. >I want to calculate the abscissa values for the given vertical values. > >For example, > x = findgen(1000)/1000*4*pi > y = cos(x) >I want to...

calculating roundness
i have obtained boundary points of shapes in an image, how can i make a test to select those which have a round shape? westclox: <SNIP does not want to be edgy... > how can i make a test to select those which have a round shape... one of the starting points can be found here at <http://encyclopedia.thefreedictionary.com/Roundness+(object)> us westclox wrote: > > > i have obtained boundary points of shapes in an image, how can i > make > a test to select those which have a round shape? Westclox, You could estimate the angular displacement of the measured po...

how i will calculate the threshold value for replacing minimum value in covariance matrice
i am implementing text idependent speaker identification using GMM.i have already done the training of the GMM model. But some element in the Covariance matrice becomes zero . Is there any procedure to find the threshold value for replace that element. if any body provide me such information i will grat full to u. sarkar skrev: > i am implementing text idependent speaker identification using GMM.i > have already done the training of the GMM model. But some element in > the Covariance matrice becomes zero . > Is there any procedure to find the threshold value for replace that &g...

how this is calculated "BW Util has exceeded the threshold value of 60%,The present value is 62% -"
Iam New into the network ,can u help me calculating the below mentioned request how this is calculated "BW Util has exceeded the threshold value of 60%,The present value is 62% -" It would help to know what this in reference to. - I'm guessing this has something to do with ISDN?? However, Bandwidth Utilization is calculated based on the what is known as the "load-interval". By default, the interface load is calculated as an exponential average over the last five minutes. J.Cottingim ...

rounding off double values
hi i am comparing elements of two double[] .one is an expected set like double[] expected=new double[]{ 1.246,2.343,4.568}; while the second array is result of some calculation public double[] mycalculations(){ double[] res=null; ......//calculate the array .... return res; } and can be { 1.246,2.3430000001,4.56800002 } for practical purposes these two are equal,when you round off the elements to 3 decimal places.if i want to unit test my code i need to compare elements of both arrays .How do i do the rounding off? DecimalFormat only helps me to print or display the numbers.I need some way ...

variable value rounding...
Can anybody help me understand how this expression is executed such that resulting value contains a 2 in the end instead of 1. How can I avoid this? % puts [expr 2.0 + 0.23385937500000001] 2.2338593750000002 Thanks, Luqman -- Luqman On Dec 11, 8:12 pm, Luqman <luqman_...@gmx.net> wrote: > Can anybody help me understand how this expression is executed such that > resulting value contains a 2 in the end instead of 1. > > How can I avoid this? > > % puts [expr 2.0 + 0.23385937500000001] > 2.2338593750000002 > > Thanks, > Short answer, you can't. ...

How to calculate eurocent rounding?
Hi, We use filemaker in a shop. Now we are allowed to round the amount someone has to pay on 5 eurocent. Lets say the amount is 12.42 euro, than it would become 12.40 (1,2,6 and7 are going down). If the amount is 12.43 euro, than it becomes 12.45 euro (3,4,8 and 9 are going up). How do I make a calculated field for this (the calculation)? Thanks in article 310820041822188317%Rob@Broomer.com, Rob at Rob@Broomer.com wrote on 8/31/04 9:22 AM: > Hi, > > We use filemaker in a shop. Now we are allowed to round the amount > someone has to pay on 5 eurocent. Lets say the amount is ...

calculating p-value
hi everybody, i have two rows of data which have to be compared. Therefore i need to calculate the p-value, which should/could be done via proc means: PROC MEANS median min max PRT; VAR; RUN; unfortunately the result is not what i expected to be. Am I using PRT wrong to compare those Data? Thank you very much On Thursday, September 20, 2012 1:00:01 AM UTC-6, Ele wrote: > hi everybody, > > > > i have two rows of data which have to be compared. > > Therefore i need to calculate the p-value, which should/could be done via proc means: > > ...