how it is possible to remove the last three-digit of a number N using two mathematical operations
Printable View
how it is possible to remove the last three-digit of a number N using two mathematical operations
well that well only get u a decimal with all the digits still there
ya basically from the right....ie the last 3 digits....the operations u mentioned are all valid.....but a general method...to remove the last 3 digits from any number N
N= whole number...integer
eg) 12345=N and u end up getting 12....but minus last 3 divide by 100 is not valid as this can be applied once we know the numbers....but we actually dont know the number N
hey thanks, but how would the N divided by 1000 work? as you will end up with a number with decimals, how would you remove those?
no i never saw that before, but i can see how that would work now
Hi
I was think in the lines of
1) Multiply by 10^ -3
2) The we end up with a decimal, how can I remove the decimal from the integer?
Any ideas?
I was thinking ... would the floor function be considered as an operation? Just curious about that
Could you also try ( N - ( N (mod 1000) ) ) / 1000? Basically, N minus the remainder when you divide by 1000, then divide that by 1000 ....
Could you show a numerical example on how that might work?