跳转到主要内容

Type conversion functions

import { Badge } from "~/components"

toUInt8

Usage:

toUInt8(<expression>)

Converts any numeric expression, or expression resulting in a string representation of a decimal, into an unsigned 8 bit integer.

Behaviour for negative numbers is undefined.

toUInt32

Usage:

toUInt32(<expression>)

Converts any numeric expression, or expression resulting in a string representation of a decimal, into an unsigned 32 bit integer.

Behaviour for negative numbers is undefined.