Sunday, February 3, 2019

hexa numbers operations : masking, shifting

Hi,

Can I do hexa numbers operations like shifting and masking in vimscript ?

let Address = 0x00000103

in C:
Address & 0x000000FF should returns 0x00000003
Address >> 8 should returns 0x00000001

in Vimscript ?

Thank you
NiVa

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: