PDA

View Full Version : How to mathematically drop fractional part of a value


ikk
06-24-2009, 01:10 PM
I already know how its done programming.

But basically, how to do this in ordinary calculator?

if i have value, lets say 111.11, i want to convert it to just 111.

Tried binary AND or OR it with 255 or 0, but doesnt work like with integers.

alphadog
06-24-2009, 01:16 PM
I use an eraser...

But, this may be what you are looking for?
http://ericlin2.tripod.com/mis/ration.html

monjardin
06-24-2009, 07:52 PM
Does your calculator have floor and/or ceiling functions (http://en.wikipedia.org/wiki/Floor_function)? Using the Windows Calculator, just press the "Int" button.

The floor function is also equivalent to the following Fourier series

http://www.physicsforums.com/latex_images/19/1985392-0.png,

which reduces to

http://www.physicsforums.com/latex_images/19/1985392-1.png.

Good luck punching that into your calculator! ;)