Log In  

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

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 is included in the KNUTIL library.
If you want to check the type at once, consider using a DMP().

release note


  • first release
P#129901 2023-05-19 08:17 ( Edited 2023-05-19 09:44)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-09-27 08:58:00 | 0.009s | Q:13