unchar()

Converts a single-character String to a Number.

unchar() converts single-character strings to their corresponding integer (whole number).

The parameter, n, is the character to convert. For example, unchar('A'), returns the number 65. If an array is passed, as in unchar(['A', 'B', 'C']), an array of integers is returned.

उदाहरण

सिंटैक्स

unchar(n)
unchar(ns)

पैरामीटर्स

n
String:

value to convert.

ns
String[]:

values to convert.

Returns

Number: converted number.
This page is generated from the comments in src/utilities/conversion.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ