Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function numberToHex
import { numberToHex } from "https://deno.land/x/crc32@v1.0.2/mod.ts";

Converts a number to a hexadecimal string.

Parameters

n: number

The number to convert.

Returns

string

The converted hexadecimal string.