Skip to main content

stou

Convert a string to an unsigned integer.

stou("123", 10); //123u
stou("0xff", 16), //255u

Syntax

stou(string, base)

Returns

  • The string as an unsigned integer on success.
  • Undefined when the string cannot be converted.