Jump to content


- - - - -

How to mathematically drop fractional part of a value


2 replies to this topic

#1 ikk

    Member

  • Members
  • PipPip
  • 87 posts

Posted 24 June 2009 - 08: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.

#2 alphadog

    DevMaster Staff

  • Moderators
  • 1716 posts

Posted 24 June 2009 - 08:16 PM

I use an eraser...

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

#3 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 25 June 2009 - 02:52 AM

Does your calculator have floor and/or ceiling functions? Using the Windows Calculator, just press the "Int" button.

The floor function is also equivalent to the following Fourier series

Posted Image,

which reduces to

Posted Image.

Good luck punching that into your calculator! ;)
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users