Re: Decimal to hexadecimal

2009-04-08 Thread John Orr
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

Re: Decimal to hexadecimal

2009-04-08 Thread Maxim Kim
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! --~--~-~--~~-

Re: Decimal to hexadecimal

2009-04-08 Thread Teemu Likonen
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

Decimal to hexadecimal

2009-04-08 Thread Maxim Kim
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 -~--~~~~--~~--~--~---