Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 9. Diverse - Разное
ascii | ascii -dos | calc | cmd | data | env | fromclip | jsonform | license | number | prompt | random | ruler | spell | status | toclip | update | version | video | view | xmlform |

Help:   Рус   |   Eng        Refer:   Рус   |   Eng  

Команда: number
sfk num[bers] [options] n1 [0xn2 0bn3 ...]

   print associated numbers in all kinds of formats,
   like decimal, hexadecimal, binary and ASCII chars
   and in little endian format.

   accepted parameter formats
       1234           a decimal number
       0x1234         a hexadecimal number
       0b1101         a binary number
       192.168.1.10   four decimal numbers
                      joined as one 32 bit value
       0b1101.0110    two binary numbers
                      joined as one value
       fe237801       hex number (auto detected)
       0tfe23         4 ASCII chars "fe23"

   options
      -hex      all given numbers are hexadecimal
      -nocol    print without colors
      -single   don't show little endian format
      -show x   print just a single format of:
                dec   hex   ip   bin
                decle hexle iple binle
      -small    convert little endian for numbers
                below 65536 as 16 bits. default is
                to convert all as 32 bits.
      -noneg    do not show negative numbers.

   see also
      sfk hex   convert decimal to hex
      sfk dec   convert hexadecimal to decimal

   web reference
      http://stahlworks.com/sfk-number

   examples
      sfk num 0x48454C4F
         prints all representations of hex value 0x48454C4F
      sfk num -2
         prints all forms of 32-bit signed value -2
      sfk num -show hexle 317705643
         prints ABCDEF12, the little endian hex value