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.
I use an eraser...
But, this may be what you are looking for?
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
which reduces to
Good luck punching that into your calculator!