PDA

View Full Version : shifting in decimals



lerameur
- 11th November 2011, 03:49
.Is it possible to shift in decimals.

I have this number 2540 and would like to shift it to get 540...
the shifting I use just divides by power of 2, I cannot find an equivalent function in the pbp manual.
besides the dig command

k

Byte_Butcher
- 11th November 2011, 04:52
.Is it possible to shit in decimals.

Sounds rather painful.




I have this number 2540 and would like to shift it to get 540...
the shifting I use just divides by power of 2, I cannot find an equivalent function in the pbp manual.
besides the dig command

How about modulus? (remainder)

2540 // 1000 = 540

2540 // 100 = 40

2540 // 10 = 0

lerameur
- 11th November 2011, 05:13
yes thats the command. NOW I remember. thank you...

LinkMTech
- 12th November 2011, 21:41
.Is it possible to shit in decimals.

I would say yes if none were to follow, otherwise the product becomes a sum of the fractions. Good luck!

Sorry, couldn't help it :rolleyes-new: