Help for this page

Select Code to Download


  1. or download this
    while (<>) {
      chomp;
    ...
    "65"
    Argument ""65"" isn't numeric in printf at -e line 5, <> line 3.
    input as string="65", as decimal=0
    
  2. or download this
    > while read a; do
    > printf "string=%s, as decimal=%d\n" $a $a
    ...
    string="0", as decimal=48
    "0x30"
    string="0x30", as decimal=48