turbobeast / dec-to-hex

convert decimal (base 10) numbers to hexidecimal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dec-to-hex

convert decimal (base 10) numbers to hexidecimal

I wrote this as an exercise. A better solution is.

  let dec = 255;
  let hex = dec.toString(16);

About

convert decimal (base 10) numbers to hexidecimal


Languages

Language:JavaScript 100.0%