Not sure if it's exactly what you want but my first question would be if
you've tried the printf() function, with a format specifier similar to C.
Eg
let hexString = printf("0x%X", decNumber)
Cheers,
John
On Wed, 08 Apr 2009 10:48:14 +0200, Maxim Kim wrote:
>
> Hi,
>
> Can I convert decimal
On 8 апр, 13:11, Teemu Likonen wrote:
> On 2009-04-08 01:48 (-0700), Maxim Kim wrote:
>
> > Can I convert decimal number to a hexadecimal in vimscript?
>
> Yes, for example:
>
> printf('%x', 1234)
> printf('%X', 1234)
> printf('%04x', 1234)
Thanks!
--~--~-~--~~-
On 2009-04-08 01:48 (-0700), Maxim Kim wrote:
> Can I convert decimal number to a hexadecimal in vimscript?
Yes, for example:
printf('%x', 1234)
printf('%X', 1234)
printf('%04x', 1234)
--~--~-~--~~~---~--~~
You received this message from the "vim_use
Hi,
Can I convert decimal number to a hexadecimal in vimscript?
--~--~-~--~~~---~--~~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---