Share your repls and programming experiences

← Back to all posts
A Hexadecimal Converter
johnstev111 (5)

A program that can take any number (signed int64) to hexadecimal bytes in Little-endian byte form.

In order to show that something doesn't work (this shouldn't happen, but perform this test anyway),
Try testing [ -7866897547630675894 ]
The output should be [ 4AF8146D5C2AD392 ] in hex.

There is a known bug pastes a string similar to [ 010;1R010;1R010;1R010;1R ] when typing text. Please delete this text then type your number.