Log In  


Cart #knutil_tonorm-0 | 2023-05-19 | Code ▽ | Embed ▽ | No License
1

Feature Overview

TONORM() normalize argument values (strings) to the correct type.

  • Mainly converts from strings to values of the correct type.
    • Especially used to initialize multiple values from a long string, see HTBL().
  • Hexadecimal numbers are converted to decimal numbers.
  • This function consumes 28 Token.
?tonorm('true') -- true (The type is 'boolean')
?tonorm('nil') -- [nil] (The type is 'nil')

This function was included in the KNUTIL library, but has been deprecated since v0.14.0.
If you want to check the type at once, consider using a DMP().

release note


v0.1

  • first release
1



[Please log in to post a comment]