Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Stone Mountain
You mean a rational result, right? 2 divided by 3 does not yield an integer.

No, in a computer program you will get an integer result. If you are assigning the result of (2/3) to an integer, you will get an integer result of 0.

191 posted on 12/08/2006 2:08:31 PM PST by vrwc1
[ Post Reply | Private Reply | To 178 | View Replies ]


To: vrwc1
You mean a rational result, right? 2 divided by 3 does not yield an integer.

2 divided by 3 does not yield an integer.

No, in a computer program you will get an integer result.

I don't understand. Are you talking about a program that rounds to the nearest integer? Most computer programs that I know (computers, calculators) will not yield an integer when dividing 2 by 3.

I suspect I'm missing something here. What is it?

194 posted on 12/08/2006 2:11:42 PM PST by Stone Mountain
[ Post Reply | Private Reply | To 191 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson